How to use the @babel/helper-create-regexp-features-plugin.createRegExpFeaturePlugin function in @babel/helper-create-regexp-features-plugin

To help you get started, we’ve selected a few @babel/helper-create-regexp-features-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oslabs-beta / ReactRTC / node_modules / @babel / plugin-transform-named-capturing-groups-regex / lib / index.js View on Github external
function _default(core, options) {
  const {
    runtime = true
  } = options;

  if (typeof runtime !== "boolean") {
    throw new Error("The 'runtime' option must be boolean");
  }

  return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
    name: "transform-named-capturing-groups-regex",
    feature: "namedCaptureGroups",
    options: {
      runtime
    }
  });
}
github oslabs-beta / ReactRTC / node_modules / @babel / plugin-proposal-unicode-property-regex / lib / index.js View on Github external
var _default = (0, _helperPluginUtils.declare)((api, options) => {
  api.assertVersion(7);
  const {
    useUnicodeFlag = true
  } = options;

  if (typeof useUnicodeFlag !== "boolean") {
    throw new Error(".useUnicodeFlag must be a boolean, or undefined");
  }

  return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
    name: "proposal-unicode-property-regex",
    feature: "unicodePropertyEscape",
    options: {
      useUnicodeFlag
    }
  });
});
github oslabs-beta / ReactRTC / node_modules / @babel / plugin-transform-dotall-regex / lib / index.js View on Github external
var _default = (0, _helperPluginUtils.declare)(api => {
  api.assertVersion(7);
  return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
    name: "transform-dotall-regex",
    feature: "dotAllFlag"
  });
});
github oslabs-beta / ReactRTC / node_modules / @babel / plugin-transform-unicode-regex / lib / index.js View on Github external
var _default = (0, _helperPluginUtils.declare)(api => {
  api.assertVersion(7);
  return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
    name: "transform-unicode-regex",
    feature: "unicodeFlag"
  });
});

@babel/helper-create-regexp-features-plugin

Compile ESNext Regular Expressions to ES5

MIT
Latest version published 16 days ago

Package Health Score

95 / 100
Full package analysis

Popular @babel/helper-create-regexp-features-plugin functions