index.js 643 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
  7. var _helperPluginUtils = require("@babel/helper-plugin-utils");
  8. var _default = (0, _helperPluginUtils.declare)(api => {
  9. api.assertVersion(7);
  10. return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
  11. name: "syntax-unicode-sets-regex",
  12. feature: "unicodeSetsFlag_syntax",
  13. manipulateOptions(opts, parserOpts) {
  14. parserOpts.plugins.push("regexpUnicodeSets");
  15. }
  16. });
  17. });
  18. exports.default = _default;