Parse JS Module Blocks proposal (#12469)

This commit is contained in:
Sosuke Suzuki
2021-02-22 04:08:20 +09:00
committed by GitHub
parent e4588bed22
commit 9c567baa9b
64 changed files with 1704 additions and 32 deletions

View 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");
},
};
});