parent
33eb56ab09
commit
0aa3ac2bb5
@ -1,10 +1,5 @@
|
|||||||
type BabelParserOptions = {
|
type BabelParserOptions = {
|
||||||
strictMode?: boolean;
|
sourceFilename?: string;
|
||||||
looseModules?: boolean;
|
|
||||||
highlightCode?: boolean;
|
|
||||||
nonStandard?: boolean;
|
|
||||||
sourceType?: "module" | "script";
|
sourceType?: "module" | "script";
|
||||||
filename?: string;
|
plugins?: Array<Object>;
|
||||||
features?: Object;
|
|
||||||
plugins?: Object;
|
|
||||||
};
|
};
|
||||||
|
|||||||
@ -52,11 +52,8 @@ export default class File extends Store {
|
|||||||
this.opts = this.initOptions(opts);
|
this.opts = this.initOptions(opts);
|
||||||
|
|
||||||
this.parserOpts = {
|
this.parserOpts = {
|
||||||
highlightCode: this.opts.highlightCode,
|
|
||||||
nonStandard: this.opts.nonStandard,
|
|
||||||
sourceType: this.opts.sourceType,
|
sourceType: this.opts.sourceType,
|
||||||
filename: this.opts.filename,
|
sourceFileName: this.opts.filename,
|
||||||
sourceFileName:this.opts.filename,
|
|
||||||
plugins: []
|
plugins: []
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user