diff --git a/lib/parser.js b/lib/parser.js index a7fbb5318616..7c796731cea0 100644 --- a/lib/parser.js +++ b/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; }; diff --git a/packages/babel-core/src/transformation/file/index.js b/packages/babel-core/src/transformation/file/index.js index 7a3bc883f74a..01d5b7efc9d3 100644 --- a/packages/babel-core/src/transformation/file/index.js +++ b/packages/babel-core/src/transformation/file/index.js @@ -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 = [];