Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports.default = void 0;
|
---|
5 |
|
---|
6 | var _path = _interopRequireDefault(require("path"));
|
---|
7 |
|
---|
8 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
---|
9 |
|
---|
10 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * @babel/preset-modules produces clean, minimal output for ES Modules-supporting browsers.
|
---|
14 | * @param {Object} [options]
|
---|
15 | * @param {boolean} [options.loose=false] Loose mode skips seldom-needed transforms that increase output size.
|
---|
16 | */
|
---|
17 | var _default = (0, _helperPluginUtils.declare)((api, opts) => {
|
---|
18 | api.assertVersion(7);
|
---|
19 | const loose = opts.loose === true;
|
---|
20 | return {
|
---|
21 | plugins: [_path.default.resolve(__dirname, "./plugins/transform-edge-default-parameters"), _path.default.resolve(__dirname, "./plugins/transform-tagged-template-caching"), _path.default.resolve(__dirname, "./plugins/transform-jsx-spread"), _path.default.resolve(__dirname, "./plugins/transform-safari-for-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-safari-block-shadowing"), _path.default.resolve(__dirname, "./plugins/transform-async-arrows-in-class"), !loose && _path.default.resolve(__dirname, "./plugins/transform-edge-function-name"), // Proposals
|
---|
22 | require.resolve("@babel/plugin-proposal-unicode-property-regex"), require.resolve("@babel/plugin-transform-dotall-regex")].filter(Boolean)
|
---|
23 | };
|
---|
24 | });
|
---|
25 |
|
---|
26 | exports.default = _default;
|
---|
27 | module.exports = exports.default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.