mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
26 lines
595 B
JavaScript
26 lines
595 B
JavaScript
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = _default;
|
||
|
|
||
|
var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
|
||
|
|
||
|
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
|
||
|
}
|
||
|
});
|
||
|
}
|