Permalink
Browse files

Update babel parser options (#4688)

* Update babel parser options
  • Loading branch information...
1 parent 33eb56a commit 0aa3ac2bb5ebf977a0786af4117d6c3aa767ab96 @existentialism existentialism committed with hzoo Oct 7, 2016
Showing with 5 additions and 13 deletions.
  1. +2 −7 lib/parser.js
  2. +3 −6 packages/babel-core/src/transformation/file/index.js
View
@@ -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>;
};
@@ -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 = [];

0 comments on commit 0aa3ac2

Please sign in to comment.