Update babel parser options (#4688)

* Update babel parser options
This commit is contained in:
Brian Ng 2016-10-07 13:30:47 -05:00 committed by Henry Zhu
parent 33eb56ab09
commit 0aa3ac2bb5
2 changed files with 5 additions and 13 deletions

View File

@ -1,10 +1,5 @@
type BabelParserOptions = {
strictMode?: boolean;
looseModules?: boolean;
highlightCode?: boolean;
nonStandard?: boolean;
sourceFilename?: string;
sourceType?: "module" | "script";
filename?: string;
features?: Object;
plugins?: Object;
plugins?: Array<Object>;
};

View File

@ -52,10 +52,7 @@ export default class File extends Store {
this.opts = this.initOptions(opts);
this.parserOpts = {
highlightCode: this.opts.highlightCode,
nonStandard: this.opts.nonStandard,
sourceType: this.opts.sourceType,
filename: this.opts.filename,
sourceFileName: this.opts.filename,
plugins: []
};