14 lines
265 B
JavaScript
14 lines
265 B
JavaScript
import { declare } from "@babel/helper-plugin-utils";
|
|
|
|
export default declare(api => {
|
|
api.assertVersion(7);
|
|
|
|
return {
|
|
name: "syntax-dynamic-import",
|
|
|
|
manipulateOptions(opts, parserOpts) {
|
|
parserOpts.plugins.push("dynamicImport");
|
|
},
|
|
};
|
|
});
|