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 = { type BabelParserOptions = {
strictMode?: boolean; sourceFilename?: string;
looseModules?: boolean;
highlightCode?: boolean;
nonStandard?: boolean;
sourceType?: "module" | "script"; sourceType?: "module" | "script";
filename?: string; plugins?: Array<Object>;
features?: Object;
plugins?: Object;
}; };

View File

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