Skip to content

Commit

Permalink
Update babel parser options (#4688)
Browse files Browse the repository at this point in the history
* Update babel parser options
  • Loading branch information
existentialism authored and hzoo committed Oct 7, 2016
1 parent 33eb56a commit 0aa3ac2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
9 changes: 2 additions & 7 deletions lib/parser.js
@@ -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>;
};
9 changes: 3 additions & 6 deletions packages/babel-core/src/transformation/file/index.js
Expand Up @@ -52,12 +52,9 @@ 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: []
sourceType: this.opts.sourceType,
sourceFileName: this.opts.filename,
plugins: []
};

this.pluginVisitors = [];
Expand Down

0 comments on commit 0aa3ac2

Please sign in to comment.