index.js 535 B

123456789101112131415161718192021222324252627282930
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _helperPluginUtils() {
  7. const data = require("@babel/helper-plugin-utils");
  8. _helperPluginUtils = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. var _default = (0, _helperPluginUtils().declare)(api => {
  14. api.assertVersion(7);
  15. return {
  16. name: "syntax-dynamic-import",
  17. manipulateOptions(opts, parserOpts) {
  18. parserOpts.plugins.push("dynamicImport");
  19. }
  20. };
  21. });
  22. exports.default = _default;