add syntax plugins
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
export default function () {
|
||||
return {
|
||||
manipulateOptions(opts, parserOpts) {
|
||||
var jsx = parserOpts.plugins.jsx;
|
||||
delete parserOpts.plugins.jsx;
|
||||
|
||||
parserOpts.plugins.flow = true;
|
||||
if (jsx) parserOpts.plugins.jsx = true;
|
||||
parserOpts.plugins.push("flow");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user