Last change
on this file 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 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = _default;
|
---|
7 |
|
---|
8 | var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
|
---|
9 |
|
---|
10 | function _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.