parent
33eb56ab09
commit
0aa3ac2bb5
@ -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 = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user