@teambit/babel 1.0.516 → 1.0.518

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,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.516/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.516/dist/babel.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.518/dist/babel.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.518/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,24 +1,24 @@
1
1
  {
2
2
  "name": "@teambit/babel",
3
- "version": "1.0.516",
3
+ "version": "1.0.518",
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.516"
9
+ "version": "1.0.518"
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.1093",
16
- "@teambit/compiler": "1.0.516",
17
- "@teambit/logger": "0.0.1186"
15
+ "@teambit/cli": "0.0.1095",
16
+ "@teambit/compiler": "1.0.518",
17
+ "@teambit/logger": "0.0.1188"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/mocha": "9.1.0",
21
- "@teambit/harmony.envs.core-aspect-env": "0.0.68",
21
+ "@teambit/harmony.envs.core-aspect-env": "0.0.69",
22
22
  "@teambit/compilation.aspect-docs.babel": "0.0.172"
23
23
  },
24
24
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.compilation/babel@1.0.516" tests="0" failures="0" errors="0" skipped="0"/>
4
- </testsuites>
@@ -1 +0,0 @@
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={5891:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(1594));var r=n(5016),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},6174:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(5891));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},2244:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.516",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(n(1594));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},5016:e=>{e.exports=MdxJsReact},1594: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(2244),a=(n(1594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(6174),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})()));
@@ -1,732 +0,0 @@
1
- {
2
- "__schema": "APISchema",
3
- "location": {
4
- "filePath": "index.ts",
5
- "line": 1,
6
- "character": 1
7
- },
8
- "module": {
9
- "__schema": "ModuleSchema",
10
- "location": {
11
- "filePath": "index.ts",
12
- "line": 1,
13
- "character": 1
14
- },
15
- "exports": [
16
- {
17
- "__schema": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 1,
21
- "character": 10
22
- },
23
- "signature": "export { BabelCompiler };\n\nBabelCompiler",
24
- "name": "BabelCompiler",
25
- "exportNode": {
26
- "__schema": "TypeRefSchema",
27
- "location": {
28
- "filePath": "index.ts",
29
- "line": 1,
30
- "character": 10
31
- },
32
- "name": "BabelCompiler",
33
- "componentId": {
34
- "scope": "teambit.compilation",
35
- "name": "babel-compiler",
36
- "version": "1.1.13"
37
- }
38
- }
39
- },
40
- {
41
- "__schema": "ExportSchema",
42
- "location": {
43
- "filePath": "index.ts",
44
- "line": 2,
45
- "character": 15
46
- },
47
- "signature": "class BabelMain",
48
- "name": "BabelMain",
49
- "exportNode": {
50
- "__schema": "ClassSchema",
51
- "location": {
52
- "filePath": "babel.main.runtime.ts",
53
- "line": 9,
54
- "character": 1
55
- },
56
- "signature": "class BabelMain",
57
- "name": "BabelMain",
58
- "members": [
59
- {
60
- "__schema": "ConstructorSchema",
61
- "location": {
62
- "filePath": "babel.main.runtime.ts",
63
- "line": 10,
64
- "character": 3
65
- },
66
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
67
- "name": "constructor",
68
- "params": [
69
- {
70
- "__schema": "ParameterSchema",
71
- "location": {
72
- "filePath": "babel.main.runtime.ts",
73
- "line": 11,
74
- "character": 5
75
- },
76
- "name": "logger",
77
- "type": {
78
- "__schema": "TypeRefSchema",
79
- "location": {
80
- "filePath": "babel.main.runtime.ts",
81
- "line": 11,
82
- "character": 21
83
- },
84
- "name": "Logger",
85
- "componentId": {
86
- "scope": "teambit.harmony",
87
- "name": "logger"
88
- }
89
- },
90
- "isOptional": false,
91
- "isSpread": false
92
- },
93
- {
94
- "__schema": "ParameterSchema",
95
- "location": {
96
- "filePath": "babel.main.runtime.ts",
97
- "line": 12,
98
- "character": 5
99
- },
100
- "name": "compiler",
101
- "type": {
102
- "__schema": "TypeRefSchema",
103
- "location": {
104
- "filePath": "babel.main.runtime.ts",
105
- "line": 12,
106
- "character": 23
107
- },
108
- "name": "CompilerMain",
109
- "componentId": {
110
- "scope": "teambit.compilation",
111
- "name": "compiler"
112
- }
113
- },
114
- "isOptional": false,
115
- "isSpread": false
116
- }
117
- ],
118
- "returnType": {
119
- "__schema": "ThisTypeSchema",
120
- "location": {
121
- "filePath": "babel.main.runtime.ts",
122
- "line": 9,
123
- "character": 1
124
- },
125
- "name": "BabelMain"
126
- },
127
- "modifiers": []
128
- },
129
- {
130
- "__schema": "FunctionLikeSchema",
131
- "location": {
132
- "filePath": "babel.main.runtime.ts",
133
- "line": 15,
134
- "character": 3
135
- },
136
- "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
137
- "name": "createCompiler",
138
- "params": [
139
- {
140
- "__schema": "ParameterSchema",
141
- "location": {
142
- "filePath": "babel.main.runtime.ts",
143
- "line": 15,
144
- "character": 18
145
- },
146
- "name": "options",
147
- "type": {
148
- "__schema": "TypeRefSchema",
149
- "location": {
150
- "filePath": "babel.main.runtime.ts",
151
- "line": 15,
152
- "character": 27
153
- },
154
- "name": "BabelCompilerOptions",
155
- "internalFilePath": "compiler-options.ts"
156
- },
157
- "isOptional": false,
158
- "isSpread": false
159
- },
160
- {
161
- "__schema": "ParameterSchema",
162
- "location": {
163
- "filePath": "babel.main.runtime.ts",
164
- "line": 15,
165
- "character": 49
166
- },
167
- "name": "babelModule",
168
- "type": {
169
- "__schema": "InferenceTypeSchema",
170
- "location": {
171
- "filePath": "babel.main.runtime.ts",
172
- "line": 15,
173
- "character": 49
174
- },
175
- "type": "typeof babel"
176
- },
177
- "isOptional": true,
178
- "defaultValue": "babel",
179
- "isSpread": false
180
- }
181
- ],
182
- "returnType": {
183
- "__schema": "TypeRefSchema",
184
- "location": {
185
- "filePath": "babel.main.runtime.ts",
186
- "line": 15,
187
- "character": 3
188
- },
189
- "name": "BabelCompiler",
190
- "componentId": {
191
- "scope": "teambit.compilation",
192
- "name": "babel-compiler",
193
- "version": "1.1.13"
194
- }
195
- },
196
- "modifiers": []
197
- },
198
- {
199
- "__schema": "FunctionLikeSchema",
200
- "location": {
201
- "filePath": "babel.main.runtime.ts",
202
- "line": 19,
203
- "character": 3
204
- },
205
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
206
- "name": "getPackageJsonProps",
207
- "params": [],
208
- "returnType": {
209
- "__schema": "InferenceTypeSchema",
210
- "location": {
211
- "filePath": "babel.main.runtime.ts",
212
- "line": 19,
213
- "character": 3
214
- },
215
- "type": "{\n main: string;\n}"
216
- },
217
- "modifiers": []
218
- },
219
- {
220
- "__schema": "VariableLikeSchema",
221
- "location": {
222
- "filePath": "babel.main.runtime.ts",
223
- "line": 25,
224
- "character": 3
225
- },
226
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
227
- "name": "runtime",
228
- "type": {
229
- "__schema": "InferenceTypeSchema",
230
- "location": {
231
- "filePath": "babel.main.runtime.ts",
232
- "line": 25,
233
- "character": 3
234
- },
235
- "type": "RuntimeDefinition"
236
- },
237
- "isOptional": true,
238
- "defaultValue": "MainRuntime"
239
- },
240
- {
241
- "__schema": "VariableLikeSchema",
242
- "location": {
243
- "filePath": "babel.main.runtime.ts",
244
- "line": 26,
245
- "character": 3
246
- },
247
- "signature": "(property) BabelMain.dependencies: Aspect[]",
248
- "name": "dependencies",
249
- "type": {
250
- "__schema": "InferenceTypeSchema",
251
- "location": {
252
- "filePath": "babel.main.runtime.ts",
253
- "line": 26,
254
- "character": 3
255
- },
256
- "type": "Aspect[]"
257
- },
258
- "isOptional": true,
259
- "defaultValue": "[LoggerAspect, CompilerAspect]"
260
- },
261
- {
262
- "__schema": "FunctionLikeSchema",
263
- "location": {
264
- "filePath": "babel.main.runtime.ts",
265
- "line": 28,
266
- "character": 3
267
- },
268
- "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
269
- "name": "provider",
270
- "params": [
271
- {
272
- "__schema": "ParameterSchema",
273
- "location": {
274
- "filePath": "babel.main.runtime.ts",
275
- "line": 28,
276
- "character": 25
277
- },
278
- "name": "[ loggerExt, compiler ]",
279
- "type": {
280
- "__schema": "TupleTypeSchema",
281
- "location": {
282
- "filePath": "babel.main.runtime.ts",
283
- "line": 28,
284
- "character": 48
285
- },
286
- "elements": [
287
- {
288
- "__schema": "TypeRefSchema",
289
- "location": {
290
- "filePath": "babel.main.runtime.ts",
291
- "line": 28,
292
- "character": 49
293
- },
294
- "name": "LoggerMain",
295
- "componentId": {
296
- "scope": "teambit.harmony",
297
- "name": "logger"
298
- }
299
- },
300
- {
301
- "__schema": "TypeRefSchema",
302
- "location": {
303
- "filePath": "babel.main.runtime.ts",
304
- "line": 28,
305
- "character": 61
306
- },
307
- "name": "CompilerMain",
308
- "componentId": {
309
- "scope": "teambit.compilation",
310
- "name": "compiler"
311
- }
312
- }
313
- ]
314
- },
315
- "isOptional": false,
316
- "isSpread": false
317
- }
318
- ],
319
- "returnType": {
320
- "__schema": "InferenceTypeSchema",
321
- "location": {
322
- "filePath": "babel.main.runtime.ts",
323
- "line": 28,
324
- "character": 3
325
- },
326
- "type": "Promise<BabelMain>"
327
- },
328
- "modifiers": [
329
- "static",
330
- "async"
331
- ]
332
- }
333
- ],
334
- "extendsNodes": [],
335
- "implementNodes": []
336
- }
337
- },
338
- {
339
- "__schema": "ExportSchema",
340
- "location": {
341
- "filePath": "index.ts",
342
- "line": 3,
343
- "character": 10
344
- },
345
- "signature": "const BabelAspect: Aspect",
346
- "name": "BabelAspect",
347
- "exportNode": {
348
- "__schema": "VariableLikeSchema",
349
- "location": {
350
- "filePath": "babel.aspect.ts",
351
- "line": 3,
352
- "character": 14
353
- },
354
- "signature": "const BabelAspect: Aspect",
355
- "name": "BabelAspect",
356
- "type": {
357
- "__schema": "TypeRefSchema",
358
- "location": {
359
- "filePath": "babel.aspect.ts",
360
- "line": 3,
361
- "character": 14
362
- },
363
- "name": "Aspect",
364
- "componentId": {
365
- "scope": "teambit.harmony",
366
- "name": "harmony",
367
- "version": "0.4.6"
368
- }
369
- },
370
- "isOptional": false,
371
- "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
372
- }
373
- }
374
- ],
375
- "internals": []
376
- },
377
- "internals": [
378
- {
379
- "__schema": "ModuleSchema",
380
- "location": {
381
- "filePath": "babel.main.runtime.ts",
382
- "line": 1,
383
- "character": 1
384
- },
385
- "exports": [
386
- {
387
- "__schema": "ClassSchema",
388
- "location": {
389
- "filePath": "babel.main.runtime.ts",
390
- "line": 9,
391
- "character": 1
392
- },
393
- "signature": "class BabelMain",
394
- "name": "BabelMain",
395
- "members": [
396
- {
397
- "__schema": "ConstructorSchema",
398
- "location": {
399
- "filePath": "babel.main.runtime.ts",
400
- "line": 10,
401
- "character": 3
402
- },
403
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
404
- "name": "constructor",
405
- "params": [
406
- {
407
- "__schema": "ParameterSchema",
408
- "location": {
409
- "filePath": "babel.main.runtime.ts",
410
- "line": 11,
411
- "character": 5
412
- },
413
- "name": "logger",
414
- "type": {
415
- "__schema": "TypeRefSchema",
416
- "location": {
417
- "filePath": "babel.main.runtime.ts",
418
- "line": 11,
419
- "character": 21
420
- },
421
- "name": "Logger",
422
- "componentId": {
423
- "scope": "teambit.harmony",
424
- "name": "logger"
425
- }
426
- },
427
- "isOptional": false,
428
- "isSpread": false
429
- },
430
- {
431
- "__schema": "ParameterSchema",
432
- "location": {
433
- "filePath": "babel.main.runtime.ts",
434
- "line": 12,
435
- "character": 5
436
- },
437
- "name": "compiler",
438
- "type": {
439
- "__schema": "TypeRefSchema",
440
- "location": {
441
- "filePath": "babel.main.runtime.ts",
442
- "line": 12,
443
- "character": 23
444
- },
445
- "name": "CompilerMain",
446
- "componentId": {
447
- "scope": "teambit.compilation",
448
- "name": "compiler"
449
- }
450
- },
451
- "isOptional": false,
452
- "isSpread": false
453
- }
454
- ],
455
- "returnType": {
456
- "__schema": "ThisTypeSchema",
457
- "location": {
458
- "filePath": "babel.main.runtime.ts",
459
- "line": 9,
460
- "character": 1
461
- },
462
- "name": "BabelMain"
463
- },
464
- "modifiers": []
465
- },
466
- {
467
- "__schema": "FunctionLikeSchema",
468
- "location": {
469
- "filePath": "babel.main.runtime.ts",
470
- "line": 15,
471
- "character": 3
472
- },
473
- "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
474
- "name": "createCompiler",
475
- "params": [
476
- {
477
- "__schema": "ParameterSchema",
478
- "location": {
479
- "filePath": "babel.main.runtime.ts",
480
- "line": 15,
481
- "character": 18
482
- },
483
- "name": "options",
484
- "type": {
485
- "__schema": "TypeRefSchema",
486
- "location": {
487
- "filePath": "babel.main.runtime.ts",
488
- "line": 15,
489
- "character": 27
490
- },
491
- "name": "BabelCompilerOptions",
492
- "internalFilePath": "compiler-options.ts"
493
- },
494
- "isOptional": false,
495
- "isSpread": false
496
- },
497
- {
498
- "__schema": "ParameterSchema",
499
- "location": {
500
- "filePath": "babel.main.runtime.ts",
501
- "line": 15,
502
- "character": 49
503
- },
504
- "name": "babelModule",
505
- "type": {
506
- "__schema": "InferenceTypeSchema",
507
- "location": {
508
- "filePath": "babel.main.runtime.ts",
509
- "line": 15,
510
- "character": 49
511
- },
512
- "type": "typeof babel"
513
- },
514
- "isOptional": true,
515
- "defaultValue": "babel",
516
- "isSpread": false
517
- }
518
- ],
519
- "returnType": {
520
- "__schema": "TypeRefSchema",
521
- "location": {
522
- "filePath": "babel.main.runtime.ts",
523
- "line": 15,
524
- "character": 3
525
- },
526
- "name": "BabelCompiler",
527
- "componentId": {
528
- "scope": "teambit.compilation",
529
- "name": "babel-compiler",
530
- "version": "1.1.13"
531
- }
532
- },
533
- "modifiers": []
534
- },
535
- {
536
- "__schema": "FunctionLikeSchema",
537
- "location": {
538
- "filePath": "babel.main.runtime.ts",
539
- "line": 19,
540
- "character": 3
541
- },
542
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
543
- "name": "getPackageJsonProps",
544
- "params": [],
545
- "returnType": {
546
- "__schema": "InferenceTypeSchema",
547
- "location": {
548
- "filePath": "babel.main.runtime.ts",
549
- "line": 19,
550
- "character": 3
551
- },
552
- "type": "{\n main: string;\n}"
553
- },
554
- "modifiers": []
555
- },
556
- {
557
- "__schema": "VariableLikeSchema",
558
- "location": {
559
- "filePath": "babel.main.runtime.ts",
560
- "line": 25,
561
- "character": 3
562
- },
563
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
564
- "name": "runtime",
565
- "type": {
566
- "__schema": "InferenceTypeSchema",
567
- "location": {
568
- "filePath": "babel.main.runtime.ts",
569
- "line": 25,
570
- "character": 3
571
- },
572
- "type": "RuntimeDefinition"
573
- },
574
- "isOptional": true,
575
- "defaultValue": "MainRuntime"
576
- },
577
- {
578
- "__schema": "VariableLikeSchema",
579
- "location": {
580
- "filePath": "babel.main.runtime.ts",
581
- "line": 26,
582
- "character": 3
583
- },
584
- "signature": "(property) BabelMain.dependencies: Aspect[]",
585
- "name": "dependencies",
586
- "type": {
587
- "__schema": "InferenceTypeSchema",
588
- "location": {
589
- "filePath": "babel.main.runtime.ts",
590
- "line": 26,
591
- "character": 3
592
- },
593
- "type": "Aspect[]"
594
- },
595
- "isOptional": true,
596
- "defaultValue": "[LoggerAspect, CompilerAspect]"
597
- },
598
- {
599
- "__schema": "FunctionLikeSchema",
600
- "location": {
601
- "filePath": "babel.main.runtime.ts",
602
- "line": 28,
603
- "character": 3
604
- },
605
- "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
606
- "name": "provider",
607
- "params": [
608
- {
609
- "__schema": "ParameterSchema",
610
- "location": {
611
- "filePath": "babel.main.runtime.ts",
612
- "line": 28,
613
- "character": 25
614
- },
615
- "name": "[ loggerExt, compiler ]",
616
- "type": {
617
- "__schema": "TupleTypeSchema",
618
- "location": {
619
- "filePath": "babel.main.runtime.ts",
620
- "line": 28,
621
- "character": 48
622
- },
623
- "elements": [
624
- {
625
- "__schema": "TypeRefSchema",
626
- "location": {
627
- "filePath": "babel.main.runtime.ts",
628
- "line": 28,
629
- "character": 49
630
- },
631
- "name": "LoggerMain",
632
- "componentId": {
633
- "scope": "teambit.harmony",
634
- "name": "logger"
635
- }
636
- },
637
- {
638
- "__schema": "TypeRefSchema",
639
- "location": {
640
- "filePath": "babel.main.runtime.ts",
641
- "line": 28,
642
- "character": 61
643
- },
644
- "name": "CompilerMain",
645
- "componentId": {
646
- "scope": "teambit.compilation",
647
- "name": "compiler"
648
- }
649
- }
650
- ]
651
- },
652
- "isOptional": false,
653
- "isSpread": false
654
- }
655
- ],
656
- "returnType": {
657
- "__schema": "InferenceTypeSchema",
658
- "location": {
659
- "filePath": "babel.main.runtime.ts",
660
- "line": 28,
661
- "character": 3
662
- },
663
- "type": "Promise<BabelMain>"
664
- },
665
- "modifiers": [
666
- "static",
667
- "async"
668
- ]
669
- }
670
- ],
671
- "extendsNodes": [],
672
- "implementNodes": []
673
- }
674
- ],
675
- "internals": [
676
- {
677
- "__schema": "UnImplementedSchema",
678
- "location": {
679
- "filePath": "babel.main.runtime.ts",
680
- "line": 34,
681
- "character": 1
682
- },
683
- "name": "BabelAspect.addRuntime(BabelMain);",
684
- "type": "ExpressionStatement"
685
- }
686
- ]
687
- },
688
- {
689
- "__schema": "ModuleSchema",
690
- "location": {
691
- "filePath": "babel.aspect.ts",
692
- "line": 1,
693
- "character": 1
694
- },
695
- "exports": [
696
- {
697
- "__schema": "VariableLikeSchema",
698
- "location": {
699
- "filePath": "babel.aspect.ts",
700
- "line": 3,
701
- "character": 14
702
- },
703
- "signature": "const BabelAspect: Aspect",
704
- "name": "BabelAspect",
705
- "type": {
706
- "__schema": "TypeRefSchema",
707
- "location": {
708
- "filePath": "babel.aspect.ts",
709
- "line": 3,
710
- "character": 14
711
- },
712
- "name": "Aspect",
713
- "componentId": {
714
- "scope": "teambit.harmony",
715
- "name": "harmony",
716
- "version": "0.4.6"
717
- }
718
- },
719
- "isOptional": false,
720
- "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
721
- }
722
- ],
723
- "internals": []
724
- }
725
- ],
726
- "componentId": {
727
- "scope": "teambit.compilation",
728
- "name": "babel",
729
- "version": "1.0.516"
730
- },
731
- "taggedModuleExports": []
732
- }