@teambit/babel 1.0.424 → 1.0.426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.compilation/babel@1.0.
|
|
3
|
+
<testsuite name="teambit.compilation/babel@1.0.426" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={355:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(594));var r=n(16),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}function p(e,t){if(null==e)return{};var n,o,r=s(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}a.__bit_component=o,l.__bit_component=o,p.__bit_component=o,s.__bit_component=o;var c={},m="wrapper";function d(e){var t=e.components,n=p(e,i);return(0,r.mdx)(m,l({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"This compiler utilizes the programmatic API of Babel to transpile files. See the compiler-options.ts for more data how to pass Babel options to the compiler."),(0,r.mdx)("p",null,"Note that to isolate the components from different Babel config files on the machine, the following two props are set to false (if they weren't passed in the options): ",(0,r.mdx)("inlineCode",{parentName:"p"},"configFile")," and ",(0,r.mdx)("inlineCode",{parentName:"p"},"babelrc"),"."),(0,r.mdx)("h2",null,"FAQ"),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"Q"),": I'm getting an error about missing plugins."),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"A"),": make sure that workspace.jsonc has the plugins and that you ran ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit install"),".\nExample of the workspace.jsonc settings:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'"my-babel-env": {\n "teambit.bit/aspect": {},\n "teambit.bit/dependency-resolver": {\n "policy": {\n "dependencies": {\n "@babel/core": "7.11.6",\n "@babel/preset-react": "7.22.15",\n "@babel/preset-env": "7.22.15",\n "@babel/preset-typescript": "7.22.15",\n "@babel/plugin-transform-class-properties": "7.22.5"\n }\n }\n }\n },\n')),(0,r.mdx)("ol",{start:2},(0,r.mdx)("li",{parentName:"ol"},"You're not using the plugin.\nThe reason for the error is that Babel searches for config files in different directories. To disable this, add the following to the config you pass to the compiler:")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'{\n ...\n "babelrc": false,\n "configFile": false,\n}\n')),(0,r.mdx)("p",null,"this takes care of both .babelrc and babel.config.json."))}d.__bit_component=o,d.isMDXComponent=!0},294:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(355));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},816:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.426",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(n(594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=o,i.__bit_component=o;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/babel.svg"}));a.__bit_component=o,t.Logo=a},16:e=>{e.exports=MdxJsReact},594:e=>{e.exports=React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{compositions:()=>b,compositions_metadata:()=>y,overview:()=>f});var r={};n.r(r),n.d(r,{default:()=>u});var i=n(816),a=(n(594),n(16));const l=TeambitMdxUiMdxScopeContext;var p=n(294),s=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(null,arguments)}var m={},d="wrapper";function u(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return(0,a.mdx)(d,c({},m,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(l.MDXScopeProvider,{components:{Babel:p.n},mdxType:"MDXScopeProvider"},(0,a.mdx)(p.n,{mdxType:"Babel"})))}u.isMDXComponent=!0;const b=[i],f=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
"__schema": "ParameterSchema",
|
|
71
71
|
"location": {
|
|
72
72
|
"filePath": "babel.main.runtime.ts",
|
|
73
|
-
"line":
|
|
74
|
-
"character":
|
|
73
|
+
"line": 11,
|
|
74
|
+
"character": 5
|
|
75
75
|
},
|
|
76
76
|
"name": "logger",
|
|
77
77
|
"type": {
|
|
78
78
|
"__schema": "TypeRefSchema",
|
|
79
79
|
"location": {
|
|
80
80
|
"filePath": "babel.main.runtime.ts",
|
|
81
|
-
"line":
|
|
82
|
-
"character":
|
|
81
|
+
"line": 11,
|
|
82
|
+
"character": 21
|
|
83
83
|
},
|
|
84
84
|
"name": "Logger",
|
|
85
85
|
"componentId": {
|
|
@@ -94,16 +94,16 @@
|
|
|
94
94
|
"__schema": "ParameterSchema",
|
|
95
95
|
"location": {
|
|
96
96
|
"filePath": "babel.main.runtime.ts",
|
|
97
|
-
"line":
|
|
98
|
-
"character":
|
|
97
|
+
"line": 12,
|
|
98
|
+
"character": 5
|
|
99
99
|
},
|
|
100
100
|
"name": "compiler",
|
|
101
101
|
"type": {
|
|
102
102
|
"__schema": "TypeRefSchema",
|
|
103
103
|
"location": {
|
|
104
104
|
"filePath": "babel.main.runtime.ts",
|
|
105
|
-
"line":
|
|
106
|
-
"character":
|
|
105
|
+
"line": 12,
|
|
106
|
+
"character": 23
|
|
107
107
|
},
|
|
108
108
|
"name": "CompilerMain",
|
|
109
109
|
"componentId": {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"__schema": "FunctionLikeSchema",
|
|
131
131
|
"location": {
|
|
132
132
|
"filePath": "babel.main.runtime.ts",
|
|
133
|
-
"line":
|
|
133
|
+
"line": 15,
|
|
134
134
|
"character": 3
|
|
135
135
|
},
|
|
136
136
|
"signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"__schema": "ParameterSchema",
|
|
141
141
|
"location": {
|
|
142
142
|
"filePath": "babel.main.runtime.ts",
|
|
143
|
-
"line":
|
|
143
|
+
"line": 15,
|
|
144
144
|
"character": 18
|
|
145
145
|
},
|
|
146
146
|
"name": "options",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"__schema": "TypeRefSchema",
|
|
149
149
|
"location": {
|
|
150
150
|
"filePath": "babel.main.runtime.ts",
|
|
151
|
-
"line":
|
|
151
|
+
"line": 15,
|
|
152
152
|
"character": 27
|
|
153
153
|
},
|
|
154
154
|
"name": "BabelCompilerOptions",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"__schema": "ParameterSchema",
|
|
162
162
|
"location": {
|
|
163
163
|
"filePath": "babel.main.runtime.ts",
|
|
164
|
-
"line":
|
|
164
|
+
"line": 15,
|
|
165
165
|
"character": 49
|
|
166
166
|
},
|
|
167
167
|
"name": "babelModule",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"__schema": "InferenceTypeSchema",
|
|
170
170
|
"location": {
|
|
171
171
|
"filePath": "babel.main.runtime.ts",
|
|
172
|
-
"line":
|
|
172
|
+
"line": 15,
|
|
173
173
|
"character": 49
|
|
174
174
|
},
|
|
175
175
|
"type": "typeof babel"
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"__schema": "TypeRefSchema",
|
|
184
184
|
"location": {
|
|
185
185
|
"filePath": "babel.main.runtime.ts",
|
|
186
|
-
"line":
|
|
186
|
+
"line": 15,
|
|
187
187
|
"character": 3
|
|
188
188
|
},
|
|
189
189
|
"name": "BabelCompiler",
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"__schema": "FunctionLikeSchema",
|
|
200
200
|
"location": {
|
|
201
201
|
"filePath": "babel.main.runtime.ts",
|
|
202
|
-
"line":
|
|
202
|
+
"line": 19,
|
|
203
203
|
"character": 3
|
|
204
204
|
},
|
|
205
205
|
"signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
"__schema": "InferenceTypeSchema",
|
|
210
210
|
"location": {
|
|
211
211
|
"filePath": "babel.main.runtime.ts",
|
|
212
|
-
"line":
|
|
212
|
+
"line": 19,
|
|
213
213
|
"character": 3
|
|
214
214
|
},
|
|
215
215
|
"type": "{\n main: string;\n}"
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"__schema": "VariableLikeSchema",
|
|
221
221
|
"location": {
|
|
222
222
|
"filePath": "babel.main.runtime.ts",
|
|
223
|
-
"line":
|
|
223
|
+
"line": 25,
|
|
224
224
|
"character": 3
|
|
225
225
|
},
|
|
226
226
|
"signature": "(property) BabelMain.runtime: RuntimeDefinition",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"__schema": "InferenceTypeSchema",
|
|
230
230
|
"location": {
|
|
231
231
|
"filePath": "babel.main.runtime.ts",
|
|
232
|
-
"line":
|
|
232
|
+
"line": 25,
|
|
233
233
|
"character": 3
|
|
234
234
|
},
|
|
235
235
|
"type": "RuntimeDefinition"
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"__schema": "VariableLikeSchema",
|
|
242
242
|
"location": {
|
|
243
243
|
"filePath": "babel.main.runtime.ts",
|
|
244
|
-
"line":
|
|
244
|
+
"line": 26,
|
|
245
245
|
"character": 3
|
|
246
246
|
},
|
|
247
247
|
"signature": "(property) BabelMain.dependencies: Aspect[]",
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
"__schema": "InferenceTypeSchema",
|
|
251
251
|
"location": {
|
|
252
252
|
"filePath": "babel.main.runtime.ts",
|
|
253
|
-
"line":
|
|
253
|
+
"line": 26,
|
|
254
254
|
"character": 3
|
|
255
255
|
},
|
|
256
256
|
"type": "Aspect[]"
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
"__schema": "FunctionLikeSchema",
|
|
263
263
|
"location": {
|
|
264
264
|
"filePath": "babel.main.runtime.ts",
|
|
265
|
-
"line":
|
|
265
|
+
"line": 28,
|
|
266
266
|
"character": 3
|
|
267
267
|
},
|
|
268
268
|
"signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
|
|
@@ -272,7 +272,7 @@
|
|
|
272
272
|
"__schema": "ParameterSchema",
|
|
273
273
|
"location": {
|
|
274
274
|
"filePath": "babel.main.runtime.ts",
|
|
275
|
-
"line":
|
|
275
|
+
"line": 28,
|
|
276
276
|
"character": 25
|
|
277
277
|
},
|
|
278
278
|
"name": "[ loggerExt, compiler ]",
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
"__schema": "TupleTypeSchema",
|
|
281
281
|
"location": {
|
|
282
282
|
"filePath": "babel.main.runtime.ts",
|
|
283
|
-
"line":
|
|
283
|
+
"line": 28,
|
|
284
284
|
"character": 48
|
|
285
285
|
},
|
|
286
286
|
"elements": [
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"__schema": "TypeRefSchema",
|
|
289
289
|
"location": {
|
|
290
290
|
"filePath": "babel.main.runtime.ts",
|
|
291
|
-
"line":
|
|
291
|
+
"line": 28,
|
|
292
292
|
"character": 49
|
|
293
293
|
},
|
|
294
294
|
"name": "LoggerMain",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
"__schema": "TypeRefSchema",
|
|
302
302
|
"location": {
|
|
303
303
|
"filePath": "babel.main.runtime.ts",
|
|
304
|
-
"line":
|
|
304
|
+
"line": 28,
|
|
305
305
|
"character": 61
|
|
306
306
|
},
|
|
307
307
|
"name": "CompilerMain",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"__schema": "InferenceTypeSchema",
|
|
321
321
|
"location": {
|
|
322
322
|
"filePath": "babel.main.runtime.ts",
|
|
323
|
-
"line":
|
|
323
|
+
"line": 28,
|
|
324
324
|
"character": 3
|
|
325
325
|
},
|
|
326
326
|
"type": "Promise<BabelMain>"
|
|
@@ -407,16 +407,16 @@
|
|
|
407
407
|
"__schema": "ParameterSchema",
|
|
408
408
|
"location": {
|
|
409
409
|
"filePath": "babel.main.runtime.ts",
|
|
410
|
-
"line":
|
|
411
|
-
"character":
|
|
410
|
+
"line": 11,
|
|
411
|
+
"character": 5
|
|
412
412
|
},
|
|
413
413
|
"name": "logger",
|
|
414
414
|
"type": {
|
|
415
415
|
"__schema": "TypeRefSchema",
|
|
416
416
|
"location": {
|
|
417
417
|
"filePath": "babel.main.runtime.ts",
|
|
418
|
-
"line":
|
|
419
|
-
"character":
|
|
418
|
+
"line": 11,
|
|
419
|
+
"character": 21
|
|
420
420
|
},
|
|
421
421
|
"name": "Logger",
|
|
422
422
|
"componentId": {
|
|
@@ -431,16 +431,16 @@
|
|
|
431
431
|
"__schema": "ParameterSchema",
|
|
432
432
|
"location": {
|
|
433
433
|
"filePath": "babel.main.runtime.ts",
|
|
434
|
-
"line":
|
|
435
|
-
"character":
|
|
434
|
+
"line": 12,
|
|
435
|
+
"character": 5
|
|
436
436
|
},
|
|
437
437
|
"name": "compiler",
|
|
438
438
|
"type": {
|
|
439
439
|
"__schema": "TypeRefSchema",
|
|
440
440
|
"location": {
|
|
441
441
|
"filePath": "babel.main.runtime.ts",
|
|
442
|
-
"line":
|
|
443
|
-
"character":
|
|
442
|
+
"line": 12,
|
|
443
|
+
"character": 23
|
|
444
444
|
},
|
|
445
445
|
"name": "CompilerMain",
|
|
446
446
|
"componentId": {
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
"__schema": "FunctionLikeSchema",
|
|
468
468
|
"location": {
|
|
469
469
|
"filePath": "babel.main.runtime.ts",
|
|
470
|
-
"line":
|
|
470
|
+
"line": 15,
|
|
471
471
|
"character": 3
|
|
472
472
|
},
|
|
473
473
|
"signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
"__schema": "ParameterSchema",
|
|
478
478
|
"location": {
|
|
479
479
|
"filePath": "babel.main.runtime.ts",
|
|
480
|
-
"line":
|
|
480
|
+
"line": 15,
|
|
481
481
|
"character": 18
|
|
482
482
|
},
|
|
483
483
|
"name": "options",
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
"__schema": "TypeRefSchema",
|
|
486
486
|
"location": {
|
|
487
487
|
"filePath": "babel.main.runtime.ts",
|
|
488
|
-
"line":
|
|
488
|
+
"line": 15,
|
|
489
489
|
"character": 27
|
|
490
490
|
},
|
|
491
491
|
"name": "BabelCompilerOptions",
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
"__schema": "ParameterSchema",
|
|
499
499
|
"location": {
|
|
500
500
|
"filePath": "babel.main.runtime.ts",
|
|
501
|
-
"line":
|
|
501
|
+
"line": 15,
|
|
502
502
|
"character": 49
|
|
503
503
|
},
|
|
504
504
|
"name": "babelModule",
|
|
@@ -506,7 +506,7 @@
|
|
|
506
506
|
"__schema": "InferenceTypeSchema",
|
|
507
507
|
"location": {
|
|
508
508
|
"filePath": "babel.main.runtime.ts",
|
|
509
|
-
"line":
|
|
509
|
+
"line": 15,
|
|
510
510
|
"character": 49
|
|
511
511
|
},
|
|
512
512
|
"type": "typeof babel"
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
"__schema": "TypeRefSchema",
|
|
521
521
|
"location": {
|
|
522
522
|
"filePath": "babel.main.runtime.ts",
|
|
523
|
-
"line":
|
|
523
|
+
"line": 15,
|
|
524
524
|
"character": 3
|
|
525
525
|
},
|
|
526
526
|
"name": "BabelCompiler",
|
|
@@ -536,7 +536,7 @@
|
|
|
536
536
|
"__schema": "FunctionLikeSchema",
|
|
537
537
|
"location": {
|
|
538
538
|
"filePath": "babel.main.runtime.ts",
|
|
539
|
-
"line":
|
|
539
|
+
"line": 19,
|
|
540
540
|
"character": 3
|
|
541
541
|
},
|
|
542
542
|
"signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"__schema": "InferenceTypeSchema",
|
|
547
547
|
"location": {
|
|
548
548
|
"filePath": "babel.main.runtime.ts",
|
|
549
|
-
"line":
|
|
549
|
+
"line": 19,
|
|
550
550
|
"character": 3
|
|
551
551
|
},
|
|
552
552
|
"type": "{\n main: string;\n}"
|
|
@@ -557,7 +557,7 @@
|
|
|
557
557
|
"__schema": "VariableLikeSchema",
|
|
558
558
|
"location": {
|
|
559
559
|
"filePath": "babel.main.runtime.ts",
|
|
560
|
-
"line":
|
|
560
|
+
"line": 25,
|
|
561
561
|
"character": 3
|
|
562
562
|
},
|
|
563
563
|
"signature": "(property) BabelMain.runtime: RuntimeDefinition",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"__schema": "InferenceTypeSchema",
|
|
567
567
|
"location": {
|
|
568
568
|
"filePath": "babel.main.runtime.ts",
|
|
569
|
-
"line":
|
|
569
|
+
"line": 25,
|
|
570
570
|
"character": 3
|
|
571
571
|
},
|
|
572
572
|
"type": "RuntimeDefinition"
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
"__schema": "VariableLikeSchema",
|
|
579
579
|
"location": {
|
|
580
580
|
"filePath": "babel.main.runtime.ts",
|
|
581
|
-
"line":
|
|
581
|
+
"line": 26,
|
|
582
582
|
"character": 3
|
|
583
583
|
},
|
|
584
584
|
"signature": "(property) BabelMain.dependencies: Aspect[]",
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
"__schema": "InferenceTypeSchema",
|
|
588
588
|
"location": {
|
|
589
589
|
"filePath": "babel.main.runtime.ts",
|
|
590
|
-
"line":
|
|
590
|
+
"line": 26,
|
|
591
591
|
"character": 3
|
|
592
592
|
},
|
|
593
593
|
"type": "Aspect[]"
|
|
@@ -599,7 +599,7 @@
|
|
|
599
599
|
"__schema": "FunctionLikeSchema",
|
|
600
600
|
"location": {
|
|
601
601
|
"filePath": "babel.main.runtime.ts",
|
|
602
|
-
"line":
|
|
602
|
+
"line": 28,
|
|
603
603
|
"character": 3
|
|
604
604
|
},
|
|
605
605
|
"signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
"__schema": "ParameterSchema",
|
|
610
610
|
"location": {
|
|
611
611
|
"filePath": "babel.main.runtime.ts",
|
|
612
|
-
"line":
|
|
612
|
+
"line": 28,
|
|
613
613
|
"character": 25
|
|
614
614
|
},
|
|
615
615
|
"name": "[ loggerExt, compiler ]",
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"__schema": "TupleTypeSchema",
|
|
618
618
|
"location": {
|
|
619
619
|
"filePath": "babel.main.runtime.ts",
|
|
620
|
-
"line":
|
|
620
|
+
"line": 28,
|
|
621
621
|
"character": 48
|
|
622
622
|
},
|
|
623
623
|
"elements": [
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
"__schema": "TypeRefSchema",
|
|
626
626
|
"location": {
|
|
627
627
|
"filePath": "babel.main.runtime.ts",
|
|
628
|
-
"line":
|
|
628
|
+
"line": 28,
|
|
629
629
|
"character": 49
|
|
630
630
|
},
|
|
631
631
|
"name": "LoggerMain",
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
"__schema": "TypeRefSchema",
|
|
639
639
|
"location": {
|
|
640
640
|
"filePath": "babel.main.runtime.ts",
|
|
641
|
-
"line":
|
|
641
|
+
"line": 28,
|
|
642
642
|
"character": 61
|
|
643
643
|
},
|
|
644
644
|
"name": "CompilerMain",
|
|
@@ -657,7 +657,7 @@
|
|
|
657
657
|
"__schema": "InferenceTypeSchema",
|
|
658
658
|
"location": {
|
|
659
659
|
"filePath": "babel.main.runtime.ts",
|
|
660
|
-
"line":
|
|
660
|
+
"line": 28,
|
|
661
661
|
"character": 3
|
|
662
662
|
},
|
|
663
663
|
"type": "Promise<BabelMain>"
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
"__schema": "UnImplementedSchema",
|
|
678
678
|
"location": {
|
|
679
679
|
"filePath": "babel.main.runtime.ts",
|
|
680
|
-
"line":
|
|
680
|
+
"line": 34,
|
|
681
681
|
"character": 1
|
|
682
682
|
},
|
|
683
683
|
"name": "BabelAspect.addRuntime(BabelMain);",
|
|
@@ -726,7 +726,7 @@
|
|
|
726
726
|
"componentId": {
|
|
727
727
|
"scope": "teambit.compilation",
|
|
728
728
|
"name": "babel",
|
|
729
|
-
"version": "1.0.
|
|
729
|
+
"version": "1.0.426"
|
|
730
730
|
},
|
|
731
731
|
"taggedModuleExports": []
|
|
732
732
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_compiler","_logger","_compilation","babel","_interopRequireWildcard","_babel","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","BabelMain","constructor","logger","compiler","createCompiler","options","babelModule","BabelCompiler","BabelAspect","id","babelTransformOptions","getPackageJsonProps","main","provider","loggerExt","createLogger","exports","MainRuntime","LoggerAspect","CompilerAspect","addRuntime"],"sources":["babel.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { BabelCompiler } from '@teambit/compilation.babel-compiler';\nimport * as babel from '@babel/core';\nimport { BabelCompilerOptions } from './compiler-options';\nimport { BabelAspect } from './babel.aspect';\n\nexport class BabelMain {\n constructor(private logger: Logger
|
|
1
|
+
{"version":3,"names":["_cli","data","require","_compiler","_logger","_compilation","babel","_interopRequireWildcard","_babel","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_defineProperty","_toPropertyKey","value","enumerable","configurable","writable","_toPrimitive","Symbol","toPrimitive","TypeError","String","Number","BabelMain","constructor","logger","compiler","createCompiler","options","babelModule","BabelCompiler","BabelAspect","id","babelTransformOptions","getPackageJsonProps","main","provider","loggerExt","createLogger","exports","MainRuntime","LoggerAspect","CompilerAspect","addRuntime"],"sources":["babel.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { BabelCompiler } from '@teambit/compilation.babel-compiler';\nimport * as babel from '@babel/core';\nimport { BabelCompilerOptions } from './compiler-options';\nimport { BabelAspect } from './babel.aspect';\n\nexport class BabelMain {\n constructor(\n private logger: Logger,\n private compiler: CompilerMain\n ) {}\n\n createCompiler(options: BabelCompilerOptions, babelModule = babel): BabelCompiler {\n return new BabelCompiler(BabelAspect.id, this.logger, options, options.babelTransformOptions || {}, babelModule);\n }\n\n getPackageJsonProps() {\n return {\n main: 'dist/{main}.js',\n };\n }\n\n static runtime = MainRuntime;\n static dependencies = [LoggerAspect, CompilerAspect];\n\n static async provider([loggerExt, compiler]: [LoggerMain, CompilerMain]) {\n const logger = loggerExt.createLogger(BabelAspect.id);\n return new BabelMain(logger, compiler);\n }\n}\n\nBabelAspect.addRuntime(BabelMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IA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AAEtC,MAAM4B,SAAS,CAAC;EACrBC,WAAWA,CACDC,MAAc,EACdC,QAAsB,EAC9B;IAAA,KAFQD,MAAc,GAAdA,MAAc;IAAA,KACdC,QAAsB,GAAtBA,QAAsB;EAC7B;EAEHC,cAAcA,CAACC,OAA6B,EAAEC,WAAW,GAAGzC,KAAK,CAAD,CAAC,EAAiB;IAChF,OAAO,KAAI0C,4BAAa,EAACC,oBAAW,CAACC,EAAE,EAAE,IAAI,CAACP,MAAM,EAAEG,OAAO,EAAEA,OAAO,CAACK,qBAAqB,IAAI,CAAC,CAAC,EAAEJ,WAAW,CAAC;EAClH;EAEAK,mBAAmBA,CAAA,EAAG;IACpB,OAAO;MACLC,IAAI,EAAE;IACR,CAAC;EACH;EAKA,aAAaC,QAAQA,CAAC,CAACC,SAAS,EAAEX,QAAQ,CAA6B,EAAE;IACvE,MAAMD,MAAM,GAAGY,SAAS,CAACC,YAAY,CAACP,oBAAW,CAACC,EAAE,CAAC;IACrD,OAAO,IAAIT,SAAS,CAACE,MAAM,EAAEC,QAAQ,CAAC;EACxC;AACF;AAACa,OAAA,CAAAhB,SAAA,GAAAA,SAAA;AAAAZ,eAAA,CAvBYY,SAAS,aAgBHiB,kBAAW;AAAA7B,eAAA,CAhBjBY,SAAS,kBAiBE,CAACkB,sBAAY,EAAEC,0BAAc,CAAC;AAQtDX,oBAAW,CAACY,UAAU,CAACpB,SAAS,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.426/dist/babel.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.426/dist/babel.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/babel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.426",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/babel",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compilation",
|
|
8
8
|
"name": "babel",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.426"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/core": "7.19.6",
|
|
13
13
|
"@teambit/harmony": "0.4.6",
|
|
14
14
|
"@teambit/compilation.babel-compiler": "1.1.13",
|
|
15
|
-
"@teambit/cli": "0.0.
|
|
16
|
-
"@teambit/compiler": "1.0.
|
|
17
|
-
"@teambit/logger": "0.0.
|
|
15
|
+
"@teambit/cli": "0.0.1003",
|
|
16
|
+
"@teambit/compiler": "1.0.426",
|
|
17
|
+
"@teambit/logger": "0.0.1096"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/mocha": "9.1.0",
|