1 | "use strict";
|
---|
2 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.DEFAULT_EXTENSIONS = void 0;
|
---|
7 | Object.defineProperty(exports, "File", {
|
---|
8 | enumerable: true,
|
---|
9 | get: function () {
|
---|
10 | return _file.default;
|
---|
11 | }
|
---|
12 | });
|
---|
13 | Object.defineProperty(exports, "buildExternalHelpers", {
|
---|
14 | enumerable: true,
|
---|
15 | get: function () {
|
---|
16 | return _buildExternalHelpers.default;
|
---|
17 | }
|
---|
18 | });
|
---|
19 | Object.defineProperty(exports, "createConfigItem", {
|
---|
20 | enumerable: true,
|
---|
21 | get: function () {
|
---|
22 | return _index2.createConfigItem;
|
---|
23 | }
|
---|
24 | });
|
---|
25 | Object.defineProperty(exports, "createConfigItemAsync", {
|
---|
26 | enumerable: true,
|
---|
27 | get: function () {
|
---|
28 | return _index2.createConfigItemAsync;
|
---|
29 | }
|
---|
30 | });
|
---|
31 | Object.defineProperty(exports, "createConfigItemSync", {
|
---|
32 | enumerable: true,
|
---|
33 | get: function () {
|
---|
34 | return _index2.createConfigItemSync;
|
---|
35 | }
|
---|
36 | });
|
---|
37 | Object.defineProperty(exports, "getEnv", {
|
---|
38 | enumerable: true,
|
---|
39 | get: function () {
|
---|
40 | return _environment.getEnv;
|
---|
41 | }
|
---|
42 | });
|
---|
43 | Object.defineProperty(exports, "loadOptions", {
|
---|
44 | enumerable: true,
|
---|
45 | get: function () {
|
---|
46 | return _index2.loadOptions;
|
---|
47 | }
|
---|
48 | });
|
---|
49 | Object.defineProperty(exports, "loadOptionsAsync", {
|
---|
50 | enumerable: true,
|
---|
51 | get: function () {
|
---|
52 | return _index2.loadOptionsAsync;
|
---|
53 | }
|
---|
54 | });
|
---|
55 | Object.defineProperty(exports, "loadOptionsSync", {
|
---|
56 | enumerable: true,
|
---|
57 | get: function () {
|
---|
58 | return _index2.loadOptionsSync;
|
---|
59 | }
|
---|
60 | });
|
---|
61 | Object.defineProperty(exports, "loadPartialConfig", {
|
---|
62 | enumerable: true,
|
---|
63 | get: function () {
|
---|
64 | return _index2.loadPartialConfig;
|
---|
65 | }
|
---|
66 | });
|
---|
67 | Object.defineProperty(exports, "loadPartialConfigAsync", {
|
---|
68 | enumerable: true,
|
---|
69 | get: function () {
|
---|
70 | return _index2.loadPartialConfigAsync;
|
---|
71 | }
|
---|
72 | });
|
---|
73 | Object.defineProperty(exports, "loadPartialConfigSync", {
|
---|
74 | enumerable: true,
|
---|
75 | get: function () {
|
---|
76 | return _index2.loadPartialConfigSync;
|
---|
77 | }
|
---|
78 | });
|
---|
79 | Object.defineProperty(exports, "parse", {
|
---|
80 | enumerable: true,
|
---|
81 | get: function () {
|
---|
82 | return _parse.parse;
|
---|
83 | }
|
---|
84 | });
|
---|
85 | Object.defineProperty(exports, "parseAsync", {
|
---|
86 | enumerable: true,
|
---|
87 | get: function () {
|
---|
88 | return _parse.parseAsync;
|
---|
89 | }
|
---|
90 | });
|
---|
91 | Object.defineProperty(exports, "parseSync", {
|
---|
92 | enumerable: true,
|
---|
93 | get: function () {
|
---|
94 | return _parse.parseSync;
|
---|
95 | }
|
---|
96 | });
|
---|
97 | Object.defineProperty(exports, "resolvePlugin", {
|
---|
98 | enumerable: true,
|
---|
99 | get: function () {
|
---|
100 | return _index.resolvePlugin;
|
---|
101 | }
|
---|
102 | });
|
---|
103 | Object.defineProperty(exports, "resolvePreset", {
|
---|
104 | enumerable: true,
|
---|
105 | get: function () {
|
---|
106 | return _index.resolvePreset;
|
---|
107 | }
|
---|
108 | });
|
---|
109 | Object.defineProperty((0, exports), "template", {
|
---|
110 | enumerable: true,
|
---|
111 | get: function () {
|
---|
112 | return _template().default;
|
---|
113 | }
|
---|
114 | });
|
---|
115 | Object.defineProperty((0, exports), "tokTypes", {
|
---|
116 | enumerable: true,
|
---|
117 | get: function () {
|
---|
118 | return _parser().tokTypes;
|
---|
119 | }
|
---|
120 | });
|
---|
121 | Object.defineProperty(exports, "transform", {
|
---|
122 | enumerable: true,
|
---|
123 | get: function () {
|
---|
124 | return _transform.transform;
|
---|
125 | }
|
---|
126 | });
|
---|
127 | Object.defineProperty(exports, "transformAsync", {
|
---|
128 | enumerable: true,
|
---|
129 | get: function () {
|
---|
130 | return _transform.transformAsync;
|
---|
131 | }
|
---|
132 | });
|
---|
133 | Object.defineProperty(exports, "transformFile", {
|
---|
134 | enumerable: true,
|
---|
135 | get: function () {
|
---|
136 | return _transformFile.transformFile;
|
---|
137 | }
|
---|
138 | });
|
---|
139 | Object.defineProperty(exports, "transformFileAsync", {
|
---|
140 | enumerable: true,
|
---|
141 | get: function () {
|
---|
142 | return _transformFile.transformFileAsync;
|
---|
143 | }
|
---|
144 | });
|
---|
145 | Object.defineProperty(exports, "transformFileSync", {
|
---|
146 | enumerable: true,
|
---|
147 | get: function () {
|
---|
148 | return _transformFile.transformFileSync;
|
---|
149 | }
|
---|
150 | });
|
---|
151 | Object.defineProperty(exports, "transformFromAst", {
|
---|
152 | enumerable: true,
|
---|
153 | get: function () {
|
---|
154 | return _transformAst.transformFromAst;
|
---|
155 | }
|
---|
156 | });
|
---|
157 | Object.defineProperty(exports, "transformFromAstAsync", {
|
---|
158 | enumerable: true,
|
---|
159 | get: function () {
|
---|
160 | return _transformAst.transformFromAstAsync;
|
---|
161 | }
|
---|
162 | });
|
---|
163 | Object.defineProperty(exports, "transformFromAstSync", {
|
---|
164 | enumerable: true,
|
---|
165 | get: function () {
|
---|
166 | return _transformAst.transformFromAstSync;
|
---|
167 | }
|
---|
168 | });
|
---|
169 | Object.defineProperty(exports, "transformSync", {
|
---|
170 | enumerable: true,
|
---|
171 | get: function () {
|
---|
172 | return _transform.transformSync;
|
---|
173 | }
|
---|
174 | });
|
---|
175 | Object.defineProperty((0, exports), "traverse", {
|
---|
176 | enumerable: true,
|
---|
177 | get: function () {
|
---|
178 | return _traverse().default;
|
---|
179 | }
|
---|
180 | });
|
---|
181 | exports.version = exports.types = void 0;
|
---|
182 | var _file = require("./transformation/file/file.js");
|
---|
183 | var _buildExternalHelpers = require("./tools/build-external-helpers.js");
|
---|
184 | var _index = require("./config/files/index.js");
|
---|
185 | var _environment = require("./config/helpers/environment.js");
|
---|
186 | function _types() {
|
---|
187 | const data = require("@babel/types");
|
---|
188 | _types = function () {
|
---|
189 | return data;
|
---|
190 | };
|
---|
191 | return data;
|
---|
192 | }
|
---|
193 | Object.defineProperty((0, exports), "types", {
|
---|
194 | enumerable: true,
|
---|
195 | get: function () {
|
---|
196 | return _types();
|
---|
197 | }
|
---|
198 | });
|
---|
199 | function _parser() {
|
---|
200 | const data = require("@babel/parser");
|
---|
201 | _parser = function () {
|
---|
202 | return data;
|
---|
203 | };
|
---|
204 | return data;
|
---|
205 | }
|
---|
206 | function _traverse() {
|
---|
207 | const data = require("@babel/traverse");
|
---|
208 | _traverse = function () {
|
---|
209 | return data;
|
---|
210 | };
|
---|
211 | return data;
|
---|
212 | }
|
---|
213 | function _template() {
|
---|
214 | const data = require("@babel/template");
|
---|
215 | _template = function () {
|
---|
216 | return data;
|
---|
217 | };
|
---|
218 | return data;
|
---|
219 | }
|
---|
220 | var _index2 = require("./config/index.js");
|
---|
221 | var _transform = require("./transform.js");
|
---|
222 | var _transformFile = require("./transform-file.js");
|
---|
223 | var _transformAst = require("./transform-ast.js");
|
---|
224 | var _parse = require("./parse.js");
|
---|
225 | var thisFile = require("./index.js");
|
---|
226 | ;
|
---|
227 | const version = exports.version = "7.25.2";
|
---|
228 | const DEFAULT_EXTENSIONS = exports.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
|
---|
229 | ;
|
---|
230 | {
|
---|
231 | exports.OptionManager = class OptionManager {
|
---|
232 | init(opts) {
|
---|
233 | return (0, _index2.loadOptionsSync)(opts);
|
---|
234 | }
|
---|
235 | };
|
---|
236 | exports.Plugin = function Plugin(alias) {
|
---|
237 | throw new Error(`The (${alias}) Babel 5 plugin is being run with an unsupported Babel version.`);
|
---|
238 | };
|
---|
239 | }
|
---|
240 | 0 && (exports.types = exports.traverse = exports.tokTypes = exports.template = 0);
|
---|
241 |
|
---|
242 | //# sourceMappingURL=index.js.map
|
---|