Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
}
});
}
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
}
});
});
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
name: "transform-dotall-regex",
feature: "dotAllFlag"
});
});
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
name: "transform-unicode-regex",
feature: "unicodeFlag"
});
});