source: trip-planner-front/node_modules/@babel/plugin-transform-named-capturing-groups-regex/lib/index.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 595 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = _default;
7
8var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
9
10function _default(core, options) {
11 const {
12 runtime = true
13 } = options;
14
15 if (typeof runtime !== "boolean") {
16 throw new Error("The 'runtime' option must be boolean");
17 }
18
19 return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
20 name: "transform-named-capturing-groups-regex",
21 feature: "namedCaptureGroups",
22 options: {
23 runtime
24 }
25 });
26}
Note: See TracBrowser for help on using the repository browser.