Last change
on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
773 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.default = void 0;
|
---|
7 |
|
---|
8 | var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin");
|
---|
9 |
|
---|
10 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
---|
11 |
|
---|
12 | var _default = (0, _helperPluginUtils.declare)((api, options) => {
|
---|
13 | api.assertVersion(7);
|
---|
14 | const {
|
---|
15 | useUnicodeFlag = true
|
---|
16 | } = options;
|
---|
17 |
|
---|
18 | if (typeof useUnicodeFlag !== "boolean") {
|
---|
19 | throw new Error(".useUnicodeFlag must be a boolean, or undefined");
|
---|
20 | }
|
---|
21 |
|
---|
22 | return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({
|
---|
23 | name: "proposal-unicode-property-regex",
|
---|
24 | feature: "unicodePropertyEscape",
|
---|
25 | options: {
|
---|
26 | useUnicodeFlag
|
---|
27 | }
|
---|
28 | });
|
---|
29 | });
|
---|
30 |
|
---|
31 | exports.default = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.