From cbb25a7cc0ff8bdc9d289537c9ec2b615a2a52d7 Mon Sep 17 00:00:00 2001 From: Brian Ng Date: Thu, 6 Oct 2016 10:34:46 -0500 Subject: [PATCH] Update babel parser options --- lib/parser.js | 7 +------ packages/babel-core/src/transformation/file/index.js | 9 +++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/lib/parser.js b/lib/parser.js index a7fbb5318616..4448d9ae12c6 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; }; 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 = [];