Parse JS Module Blocks proposal (#12469)
This commit is contained in:
13
packages/babel-plugin-syntax-module-blocks/src/index.js
Normal file
13
packages/babel-plugin-syntax-module-blocks/src/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { declare } from "@babel/helper-plugin-utils";
|
||||
|
||||
export default declare(api => {
|
||||
api.assertVersion(7);
|
||||
|
||||
return {
|
||||
name: "syntax-module-blocks",
|
||||
|
||||
manipulateOptions(opts, parserOpts) {
|
||||
parserOpts.plugins.push("moduleBlocks");
|
||||
},
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user