@teambit/babel 1.0.158 → 1.0.159

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.
@@ -0,0 +1,2083 @@
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": "ClassSchema",
18
+ "location": {
19
+ "filePath": "babel.compiler.ts",
20
+ "line": 20,
21
+ "character": 1
22
+ },
23
+ "signature": "class BabelCompiler",
24
+ "name": "BabelCompiler",
25
+ "members": [
26
+ {
27
+ "__schema": "VariableLikeSchema",
28
+ "location": {
29
+ "filePath": "babel.compiler.ts",
30
+ "line": 21,
31
+ "character": 3
32
+ },
33
+ "signature": "(property) BabelCompiler.distDir: string",
34
+ "name": "distDir",
35
+ "type": {
36
+ "__schema": "KeywordTypeSchema",
37
+ "location": {
38
+ "filePath": "babel.compiler.ts",
39
+ "line": 21,
40
+ "character": 12
41
+ },
42
+ "name": "string"
43
+ },
44
+ "isOptional": false
45
+ },
46
+ {
47
+ "__schema": "VariableLikeSchema",
48
+ "location": {
49
+ "filePath": "babel.compiler.ts",
50
+ "line": 22,
51
+ "character": 3
52
+ },
53
+ "signature": "(property) BabelCompiler.distGlobPatterns: string[]",
54
+ "name": "distGlobPatterns",
55
+ "type": {
56
+ "__schema": "TypeArraySchema",
57
+ "location": {
58
+ "filePath": "babel.compiler.ts",
59
+ "line": 22,
60
+ "character": 21
61
+ },
62
+ "type": {
63
+ "__schema": "KeywordTypeSchema",
64
+ "location": {
65
+ "filePath": "babel.compiler.ts",
66
+ "line": 22,
67
+ "character": 21
68
+ },
69
+ "name": "string"
70
+ }
71
+ },
72
+ "isOptional": false
73
+ },
74
+ {
75
+ "__schema": "VariableLikeSchema",
76
+ "location": {
77
+ "filePath": "babel.compiler.ts",
78
+ "line": 23,
79
+ "character": 3
80
+ },
81
+ "signature": "(property) BabelCompiler.shouldCopyNonSupportedFiles: boolean",
82
+ "name": "shouldCopyNonSupportedFiles",
83
+ "type": {
84
+ "__schema": "KeywordTypeSchema",
85
+ "location": {
86
+ "filePath": "babel.compiler.ts",
87
+ "line": 23,
88
+ "character": 32
89
+ },
90
+ "name": "boolean"
91
+ },
92
+ "isOptional": false
93
+ },
94
+ {
95
+ "__schema": "VariableLikeSchema",
96
+ "location": {
97
+ "filePath": "babel.compiler.ts",
98
+ "line": 24,
99
+ "character": 3
100
+ },
101
+ "signature": "(property) BabelCompiler.artifactName: string",
102
+ "name": "artifactName",
103
+ "type": {
104
+ "__schema": "KeywordTypeSchema",
105
+ "location": {
106
+ "filePath": "babel.compiler.ts",
107
+ "line": 24,
108
+ "character": 17
109
+ },
110
+ "name": "string"
111
+ },
112
+ "isOptional": false
113
+ },
114
+ {
115
+ "__schema": "VariableLikeSchema",
116
+ "location": {
117
+ "filePath": "babel.compiler.ts",
118
+ "line": 25,
119
+ "character": 3
120
+ },
121
+ "signature": "(property) BabelCompiler.supportedFilesGlobPatterns: string[] | null",
122
+ "name": "supportedFilesGlobPatterns",
123
+ "type": {
124
+ "__schema": "TypeUnionSchema",
125
+ "location": {
126
+ "filePath": "babel.compiler.ts",
127
+ "line": 25,
128
+ "character": 31
129
+ },
130
+ "types": [
131
+ {
132
+ "__schema": "TypeArraySchema",
133
+ "location": {
134
+ "filePath": "babel.compiler.ts",
135
+ "line": 25,
136
+ "character": 31
137
+ },
138
+ "type": {
139
+ "__schema": "KeywordTypeSchema",
140
+ "location": {
141
+ "filePath": "babel.compiler.ts",
142
+ "line": 25,
143
+ "character": 31
144
+ },
145
+ "name": "string"
146
+ }
147
+ },
148
+ {
149
+ "__schema": "LiteralTypeSchema",
150
+ "location": {
151
+ "filePath": "babel.compiler.ts",
152
+ "line": 25,
153
+ "character": 42
154
+ },
155
+ "name": "null"
156
+ }
157
+ ]
158
+ },
159
+ "isOptional": false
160
+ },
161
+ {
162
+ "__schema": "ConstructorSchema",
163
+ "location": {
164
+ "filePath": "babel.compiler.ts",
165
+ "line": 26,
166
+ "character": 3
167
+ },
168
+ "signature": "constructor BabelCompiler(id: string, logger: Logger, compiler: CompilerMain, options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
169
+ "name": "constructor",
170
+ "params": [
171
+ {
172
+ "__schema": "ParameterSchema",
173
+ "location": {
174
+ "filePath": "babel.compiler.ts",
175
+ "line": 27,
176
+ "character": 5
177
+ },
178
+ "name": "id",
179
+ "type": {
180
+ "__schema": "KeywordTypeSchema",
181
+ "location": {
182
+ "filePath": "babel.compiler.ts",
183
+ "line": 27,
184
+ "character": 18
185
+ },
186
+ "name": "string"
187
+ },
188
+ "isOptional": false,
189
+ "isSpread": false
190
+ },
191
+ {
192
+ "__schema": "ParameterSchema",
193
+ "location": {
194
+ "filePath": "babel.compiler.ts",
195
+ "line": 28,
196
+ "character": 5
197
+ },
198
+ "name": "logger",
199
+ "type": {
200
+ "__schema": "TypeRefSchema",
201
+ "location": {
202
+ "filePath": "babel.compiler.ts",
203
+ "line": 28,
204
+ "character": 21
205
+ },
206
+ "name": "Logger"
207
+ },
208
+ "isOptional": false,
209
+ "isSpread": false
210
+ },
211
+ {
212
+ "__schema": "ParameterSchema",
213
+ "location": {
214
+ "filePath": "babel.compiler.ts",
215
+ "line": 29,
216
+ "character": 5
217
+ },
218
+ "name": "compiler",
219
+ "type": {
220
+ "__schema": "TypeRefSchema",
221
+ "location": {
222
+ "filePath": "babel.compiler.ts",
223
+ "line": 29,
224
+ "character": 23
225
+ },
226
+ "name": "CompilerMain"
227
+ },
228
+ "isOptional": false,
229
+ "isSpread": false
230
+ },
231
+ {
232
+ "__schema": "ParameterSchema",
233
+ "location": {
234
+ "filePath": "babel.compiler.ts",
235
+ "line": 30,
236
+ "character": 5
237
+ },
238
+ "name": "options",
239
+ "type": {
240
+ "__schema": "TypeRefSchema",
241
+ "location": {
242
+ "filePath": "babel.compiler.ts",
243
+ "line": 30,
244
+ "character": 22
245
+ },
246
+ "name": "BabelCompilerOptions"
247
+ },
248
+ "isOptional": false,
249
+ "isSpread": false
250
+ },
251
+ {
252
+ "__schema": "ParameterSchema",
253
+ "location": {
254
+ "filePath": "babel.compiler.ts",
255
+ "line": 31,
256
+ "character": 5
257
+ },
258
+ "name": "babelModule",
259
+ "type": {
260
+ "__schema": "InferenceTypeSchema",
261
+ "location": {
262
+ "filePath": "babel.compiler.ts",
263
+ "line": 31,
264
+ "character": 5
265
+ },
266
+ "type": "typeof babel"
267
+ },
268
+ "isOptional": true,
269
+ "defaultValue": "babel",
270
+ "isSpread": false
271
+ }
272
+ ],
273
+ "returnType": {
274
+ "__schema": "ThisTypeSchema",
275
+ "location": {
276
+ "filePath": "babel.compiler.ts",
277
+ "line": 20,
278
+ "character": 1
279
+ },
280
+ "name": "BabelCompiler"
281
+ },
282
+ "modifiers": []
283
+ },
284
+ {
285
+ "__schema": "VariableLikeSchema",
286
+ "location": {
287
+ "filePath": "babel.compiler.ts",
288
+ "line": 43,
289
+ "character": 3
290
+ },
291
+ "signature": "(property) BabelCompiler.displayName: string",
292
+ "name": "displayName",
293
+ "type": {
294
+ "__schema": "InferenceTypeSchema",
295
+ "location": {
296
+ "filePath": "babel.compiler.ts",
297
+ "line": 43,
298
+ "character": 3
299
+ },
300
+ "type": "string"
301
+ },
302
+ "isOptional": true,
303
+ "defaultValue": "'Babel'"
304
+ },
305
+ {
306
+ "__schema": "VariableLikeSchema",
307
+ "location": {
308
+ "filePath": "babel.compiler.ts",
309
+ "line": 44,
310
+ "character": 3
311
+ },
312
+ "signature": "(property) BabelCompiler.deleteDistDir: boolean",
313
+ "name": "deleteDistDir",
314
+ "type": {
315
+ "__schema": "InferenceTypeSchema",
316
+ "location": {
317
+ "filePath": "babel.compiler.ts",
318
+ "line": 44,
319
+ "character": 3
320
+ },
321
+ "type": "boolean"
322
+ },
323
+ "isOptional": true,
324
+ "defaultValue": "false"
325
+ },
326
+ {
327
+ "__schema": "FunctionLikeSchema",
328
+ "location": {
329
+ "filePath": "babel.compiler.ts",
330
+ "line": 46,
331
+ "character": 3
332
+ },
333
+ "signature": "(method) BabelCompiler.version(): string",
334
+ "name": "version",
335
+ "params": [],
336
+ "returnType": {
337
+ "__schema": "InferenceTypeSchema",
338
+ "location": {
339
+ "filePath": "babel.compiler.ts",
340
+ "line": 46,
341
+ "character": 3
342
+ },
343
+ "type": "string"
344
+ },
345
+ "modifiers": []
346
+ },
347
+ {
348
+ "__schema": "FunctionLikeSchema",
349
+ "location": {
350
+ "filePath": "babel.compiler.ts",
351
+ "line": 50,
352
+ "character": 3
353
+ },
354
+ "signature": "(method) BabelCompiler.getDistDir(): string",
355
+ "name": "getDistDir",
356
+ "params": [],
357
+ "returnType": {
358
+ "__schema": "InferenceTypeSchema",
359
+ "location": {
360
+ "filePath": "babel.compiler.ts",
361
+ "line": 50,
362
+ "character": 3
363
+ },
364
+ "type": "string"
365
+ },
366
+ "modifiers": []
367
+ },
368
+ {
369
+ "__schema": "FunctionLikeSchema",
370
+ "location": {
371
+ "filePath": "babel.compiler.ts",
372
+ "line": 57,
373
+ "character": 3
374
+ },
375
+ "doc": {
376
+ "__schema": "DocSchema",
377
+ "location": {
378
+ "filePath": "babel.compiler.ts",
379
+ "line": 54,
380
+ "character": 3
381
+ },
382
+ "raw": "/**\n * compile one file on the workspace\n */",
383
+ "comment": "compile one file on the workspace"
384
+ },
385
+ "signature": "(method) BabelCompiler.transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput",
386
+ "name": "transpileFile",
387
+ "params": [
388
+ {
389
+ "__schema": "ParameterSchema",
390
+ "location": {
391
+ "filePath": "babel.compiler.ts",
392
+ "line": 57,
393
+ "character": 17
394
+ },
395
+ "name": "fileContent",
396
+ "type": {
397
+ "__schema": "KeywordTypeSchema",
398
+ "location": {
399
+ "filePath": "babel.compiler.ts",
400
+ "line": 57,
401
+ "character": 30
402
+ },
403
+ "name": "string"
404
+ },
405
+ "isOptional": false,
406
+ "isSpread": false
407
+ },
408
+ {
409
+ "__schema": "ParameterSchema",
410
+ "location": {
411
+ "filePath": "babel.compiler.ts",
412
+ "line": 57,
413
+ "character": 38
414
+ },
415
+ "name": "options",
416
+ "type": {
417
+ "__schema": "TypeRefSchema",
418
+ "location": {
419
+ "filePath": "babel.compiler.ts",
420
+ "line": 57,
421
+ "character": 47
422
+ },
423
+ "name": "TranspileFileParams"
424
+ },
425
+ "isOptional": false,
426
+ "isSpread": false
427
+ }
428
+ ],
429
+ "returnType": {
430
+ "__schema": "TypeRefSchema",
431
+ "location": {
432
+ "filePath": "babel.compiler.ts",
433
+ "line": 57,
434
+ "character": 3
435
+ },
436
+ "name": "TranspileFileOutput",
437
+ "componentId": {
438
+ "scope": "teambit.compilation",
439
+ "name": "compiler"
440
+ }
441
+ },
442
+ "modifiers": []
443
+ },
444
+ {
445
+ "__schema": "FunctionLikeSchema",
446
+ "location": {
447
+ "filePath": "babel.compiler.ts",
448
+ "line": 75,
449
+ "character": 3
450
+ },
451
+ "doc": {
452
+ "__schema": "DocSchema",
453
+ "location": {
454
+ "filePath": "babel.compiler.ts",
455
+ "line": 72,
456
+ "character": 3
457
+ },
458
+ "raw": "/**\n * compile multiple components on the capsules\n */",
459
+ "comment": "compile multiple components on the capsules"
460
+ },
461
+ "signature": "(method) BabelCompiler.build(context: BuildContext): Promise<BuiltTaskResult>",
462
+ "name": "build",
463
+ "params": [
464
+ {
465
+ "__schema": "ParameterSchema",
466
+ "location": {
467
+ "filePath": "babel.compiler.ts",
468
+ "line": 75,
469
+ "character": 15
470
+ },
471
+ "name": "context",
472
+ "type": {
473
+ "__schema": "TypeRefSchema",
474
+ "location": {
475
+ "filePath": "babel.compiler.ts",
476
+ "line": 75,
477
+ "character": 24
478
+ },
479
+ "name": "BuildContext"
480
+ },
481
+ "isOptional": false,
482
+ "isSpread": false
483
+ }
484
+ ],
485
+ "returnType": {
486
+ "__schema": "TypeRefSchema",
487
+ "location": {
488
+ "filePath": "babel.compiler.ts",
489
+ "line": 75,
490
+ "character": 39
491
+ },
492
+ "name": "Promise",
493
+ "typeArgs": [
494
+ {
495
+ "__schema": "TypeRefSchema",
496
+ "location": {
497
+ "filePath": "babel.compiler.ts",
498
+ "line": 75,
499
+ "character": 47
500
+ },
501
+ "name": "BuiltTaskResult"
502
+ }
503
+ ]
504
+ },
505
+ "modifiers": [
506
+ "async"
507
+ ]
508
+ },
509
+ {
510
+ "__schema": "FunctionLikeSchema",
511
+ "location": {
512
+ "filePath": "babel.compiler.ts",
513
+ "line": 95,
514
+ "character": 3
515
+ },
516
+ "signature": "(method) BabelCompiler.createTask(name?: string): any",
517
+ "name": "createTask",
518
+ "params": [
519
+ {
520
+ "__schema": "ParameterSchema",
521
+ "location": {
522
+ "filePath": "babel.compiler.ts",
523
+ "line": 95,
524
+ "character": 14
525
+ },
526
+ "name": "name",
527
+ "type": {
528
+ "__schema": "InferenceTypeSchema",
529
+ "location": {
530
+ "filePath": "babel.compiler.ts",
531
+ "line": 95,
532
+ "character": 14
533
+ },
534
+ "type": "string"
535
+ },
536
+ "isOptional": true,
537
+ "defaultValue": "'BabelCompiler'",
538
+ "isSpread": false
539
+ }
540
+ ],
541
+ "returnType": {
542
+ "__schema": "InferenceTypeSchema",
543
+ "location": {
544
+ "filePath": "babel.compiler.ts",
545
+ "line": 95,
546
+ "character": 3
547
+ },
548
+ "type": "any"
549
+ },
550
+ "modifiers": []
551
+ },
552
+ {
553
+ "__schema": "FunctionLikeSchema",
554
+ "location": {
555
+ "filePath": "babel.compiler.ts",
556
+ "line": 139,
557
+ "character": 3
558
+ },
559
+ "signature": "(method) BabelCompiler.getArtifactDefinition(): {\n generatedBy: string;\n name: string;\n globPatterns: string[];\n}[]",
560
+ "name": "getArtifactDefinition",
561
+ "params": [],
562
+ "returnType": {
563
+ "__schema": "InferenceTypeSchema",
564
+ "location": {
565
+ "filePath": "babel.compiler.ts",
566
+ "line": 139,
567
+ "character": 3
568
+ },
569
+ "type": "{\n generatedBy: string;\n name: string;\n globPatterns: string[];\n}[]"
570
+ },
571
+ "modifiers": []
572
+ },
573
+ {
574
+ "__schema": "FunctionLikeSchema",
575
+ "location": {
576
+ "filePath": "babel.compiler.ts",
577
+ "line": 152,
578
+ "character": 3
579
+ },
580
+ "doc": {
581
+ "__schema": "DocSchema",
582
+ "location": {
583
+ "filePath": "babel.compiler.ts",
584
+ "line": 149,
585
+ "character": 3
586
+ },
587
+ "raw": "/**\n * given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js\n */",
588
+ "comment": "given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js"
589
+ },
590
+ "signature": "(method) BabelCompiler.getDistPathBySrcPath(srcPath: string): string",
591
+ "name": "getDistPathBySrcPath",
592
+ "params": [
593
+ {
594
+ "__schema": "ParameterSchema",
595
+ "location": {
596
+ "filePath": "babel.compiler.ts",
597
+ "line": 152,
598
+ "character": 24
599
+ },
600
+ "name": "srcPath",
601
+ "type": {
602
+ "__schema": "KeywordTypeSchema",
603
+ "location": {
604
+ "filePath": "babel.compiler.ts",
605
+ "line": 152,
606
+ "character": 33
607
+ },
608
+ "name": "string"
609
+ },
610
+ "isOptional": false,
611
+ "isSpread": false
612
+ }
613
+ ],
614
+ "returnType": {
615
+ "__schema": "InferenceTypeSchema",
616
+ "location": {
617
+ "filePath": "babel.compiler.ts",
618
+ "line": 152,
619
+ "character": 3
620
+ },
621
+ "type": "string"
622
+ },
623
+ "modifiers": []
624
+ },
625
+ {
626
+ "__schema": "FunctionLikeSchema",
627
+ "location": {
628
+ "filePath": "babel.compiler.ts",
629
+ "line": 160,
630
+ "character": 3
631
+ },
632
+ "doc": {
633
+ "__schema": "DocSchema",
634
+ "location": {
635
+ "filePath": "babel.compiler.ts",
636
+ "line": 157,
637
+ "character": 3
638
+ },
639
+ "raw": "/**\n * whether babel is able to compile the given path\n */",
640
+ "comment": "whether babel is able to compile the given path"
641
+ },
642
+ "signature": "(method) BabelCompiler.isFileSupported(filePath: string): boolean",
643
+ "name": "isFileSupported",
644
+ "params": [
645
+ {
646
+ "__schema": "ParameterSchema",
647
+ "location": {
648
+ "filePath": "babel.compiler.ts",
649
+ "line": 160,
650
+ "character": 19
651
+ },
652
+ "name": "filePath",
653
+ "type": {
654
+ "__schema": "KeywordTypeSchema",
655
+ "location": {
656
+ "filePath": "babel.compiler.ts",
657
+ "line": 160,
658
+ "character": 29
659
+ },
660
+ "name": "string"
661
+ },
662
+ "isOptional": false,
663
+ "isSpread": false
664
+ }
665
+ ],
666
+ "returnType": {
667
+ "__schema": "KeywordTypeSchema",
668
+ "location": {
669
+ "filePath": "babel.compiler.ts",
670
+ "line": 160,
671
+ "character": 38
672
+ },
673
+ "name": "boolean"
674
+ },
675
+ "modifiers": []
676
+ },
677
+ {
678
+ "__schema": "FunctionLikeSchema",
679
+ "location": {
680
+ "filePath": "babel.compiler.ts",
681
+ "line": 167,
682
+ "character": 3
683
+ },
684
+ "signature": "(method) BabelCompiler.displayConfig(): string",
685
+ "name": "displayConfig",
686
+ "params": [],
687
+ "returnType": {
688
+ "__schema": "InferenceTypeSchema",
689
+ "location": {
690
+ "filePath": "babel.compiler.ts",
691
+ "line": 167,
692
+ "character": 3
693
+ },
694
+ "type": "string"
695
+ },
696
+ "modifiers": []
697
+ }
698
+ ],
699
+ "extendsNodes": [],
700
+ "implementNodes": [
701
+ {
702
+ "__schema": "ExpressionWithTypeArgumentsSchema",
703
+ "location": {
704
+ "filePath": "babel.compiler.ts",
705
+ "line": 20,
706
+ "character": 39
707
+ },
708
+ "name": "implements Compiler",
709
+ "typeArgs": [],
710
+ "expression": {
711
+ "__schema": "TypeRefSchema",
712
+ "location": {
713
+ "filePath": "babel.compiler.ts",
714
+ "line": 20,
715
+ "character": 39
716
+ },
717
+ "name": "Compiler",
718
+ "componentId": {
719
+ "_legacy": {
720
+ "scope": "teambit.compilation",
721
+ "name": "babel",
722
+ "version": "1.0.159"
723
+ },
724
+ "_scope": "teambit.compilation"
725
+ }
726
+ }
727
+ }
728
+ ]
729
+ },
730
+ {
731
+ "__schema": "ClassSchema",
732
+ "location": {
733
+ "filePath": "babel.main.runtime.ts",
734
+ "line": 9,
735
+ "character": 1
736
+ },
737
+ "signature": "class BabelMain",
738
+ "name": "BabelMain",
739
+ "members": [
740
+ {
741
+ "__schema": "ConstructorSchema",
742
+ "location": {
743
+ "filePath": "babel.main.runtime.ts",
744
+ "line": 10,
745
+ "character": 3
746
+ },
747
+ "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
748
+ "name": "constructor",
749
+ "params": [
750
+ {
751
+ "__schema": "ParameterSchema",
752
+ "location": {
753
+ "filePath": "babel.main.runtime.ts",
754
+ "line": 10,
755
+ "character": 15
756
+ },
757
+ "name": "logger",
758
+ "type": {
759
+ "__schema": "TypeRefSchema",
760
+ "location": {
761
+ "filePath": "babel.main.runtime.ts",
762
+ "line": 10,
763
+ "character": 31
764
+ },
765
+ "name": "Logger"
766
+ },
767
+ "isOptional": false,
768
+ "isSpread": false
769
+ },
770
+ {
771
+ "__schema": "ParameterSchema",
772
+ "location": {
773
+ "filePath": "babel.main.runtime.ts",
774
+ "line": 10,
775
+ "character": 39
776
+ },
777
+ "name": "compiler",
778
+ "type": {
779
+ "__schema": "TypeRefSchema",
780
+ "location": {
781
+ "filePath": "babel.main.runtime.ts",
782
+ "line": 10,
783
+ "character": 57
784
+ },
785
+ "name": "CompilerMain"
786
+ },
787
+ "isOptional": false,
788
+ "isSpread": false
789
+ }
790
+ ],
791
+ "returnType": {
792
+ "__schema": "ThisTypeSchema",
793
+ "location": {
794
+ "filePath": "babel.main.runtime.ts",
795
+ "line": 9,
796
+ "character": 1
797
+ },
798
+ "name": "BabelMain"
799
+ },
800
+ "modifiers": []
801
+ },
802
+ {
803
+ "__schema": "FunctionLikeSchema",
804
+ "location": {
805
+ "filePath": "babel.main.runtime.ts",
806
+ "line": 12,
807
+ "character": 3
808
+ },
809
+ "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
810
+ "name": "createCompiler",
811
+ "params": [
812
+ {
813
+ "__schema": "ParameterSchema",
814
+ "location": {
815
+ "filePath": "babel.main.runtime.ts",
816
+ "line": 12,
817
+ "character": 18
818
+ },
819
+ "name": "options",
820
+ "type": {
821
+ "__schema": "TypeRefSchema",
822
+ "location": {
823
+ "filePath": "babel.main.runtime.ts",
824
+ "line": 12,
825
+ "character": 27
826
+ },
827
+ "name": "BabelCompilerOptions"
828
+ },
829
+ "isOptional": false,
830
+ "isSpread": false
831
+ },
832
+ {
833
+ "__schema": "ParameterSchema",
834
+ "location": {
835
+ "filePath": "babel.main.runtime.ts",
836
+ "line": 12,
837
+ "character": 49
838
+ },
839
+ "name": "babelModule",
840
+ "type": {
841
+ "__schema": "InferenceTypeSchema",
842
+ "location": {
843
+ "filePath": "babel.main.runtime.ts",
844
+ "line": 12,
845
+ "character": 49
846
+ },
847
+ "type": "typeof babel"
848
+ },
849
+ "isOptional": true,
850
+ "defaultValue": "babel",
851
+ "isSpread": false
852
+ }
853
+ ],
854
+ "returnType": {
855
+ "__schema": "TypeRefSchema",
856
+ "location": {
857
+ "filePath": "babel.main.runtime.ts",
858
+ "line": 12,
859
+ "character": 3
860
+ },
861
+ "name": "BabelCompiler"
862
+ },
863
+ "modifiers": []
864
+ },
865
+ {
866
+ "__schema": "FunctionLikeSchema",
867
+ "location": {
868
+ "filePath": "babel.main.runtime.ts",
869
+ "line": 16,
870
+ "character": 3
871
+ },
872
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
873
+ "name": "getPackageJsonProps",
874
+ "params": [],
875
+ "returnType": {
876
+ "__schema": "InferenceTypeSchema",
877
+ "location": {
878
+ "filePath": "babel.main.runtime.ts",
879
+ "line": 16,
880
+ "character": 3
881
+ },
882
+ "type": "{\n main: string;\n}"
883
+ },
884
+ "modifiers": []
885
+ },
886
+ {
887
+ "__schema": "VariableLikeSchema",
888
+ "location": {
889
+ "filePath": "babel.main.runtime.ts",
890
+ "line": 22,
891
+ "character": 3
892
+ },
893
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
894
+ "name": "runtime",
895
+ "type": {
896
+ "__schema": "InferenceTypeSchema",
897
+ "location": {
898
+ "filePath": "babel.main.runtime.ts",
899
+ "line": 22,
900
+ "character": 3
901
+ },
902
+ "type": "RuntimeDefinition"
903
+ },
904
+ "isOptional": true,
905
+ "defaultValue": "MainRuntime"
906
+ },
907
+ {
908
+ "__schema": "VariableLikeSchema",
909
+ "location": {
910
+ "filePath": "babel.main.runtime.ts",
911
+ "line": 23,
912
+ "character": 3
913
+ },
914
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
915
+ "name": "dependencies",
916
+ "type": {
917
+ "__schema": "InferenceTypeSchema",
918
+ "location": {
919
+ "filePath": "babel.main.runtime.ts",
920
+ "line": 23,
921
+ "character": 3
922
+ },
923
+ "type": "Aspect[]"
924
+ },
925
+ "isOptional": true,
926
+ "defaultValue": "[LoggerAspect, CompilerAspect]"
927
+ },
928
+ {
929
+ "__schema": "FunctionLikeSchema",
930
+ "location": {
931
+ "filePath": "babel.main.runtime.ts",
932
+ "line": 25,
933
+ "character": 3
934
+ },
935
+ "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
936
+ "name": "provider",
937
+ "params": [
938
+ {
939
+ "__schema": "ParameterSchema",
940
+ "location": {
941
+ "filePath": "babel.main.runtime.ts",
942
+ "line": 25,
943
+ "character": 25
944
+ },
945
+ "name": "[ loggerExt, compiler ]",
946
+ "type": {
947
+ "__schema": "TupleTypeSchema",
948
+ "location": {
949
+ "filePath": "babel.main.runtime.ts",
950
+ "line": 25,
951
+ "character": 48
952
+ },
953
+ "elements": [
954
+ {
955
+ "__schema": "TypeRefSchema",
956
+ "location": {
957
+ "filePath": "babel.main.runtime.ts",
958
+ "line": 25,
959
+ "character": 49
960
+ },
961
+ "name": "LoggerMain"
962
+ },
963
+ {
964
+ "__schema": "TypeRefSchema",
965
+ "location": {
966
+ "filePath": "babel.main.runtime.ts",
967
+ "line": 25,
968
+ "character": 61
969
+ },
970
+ "name": "CompilerMain"
971
+ }
972
+ ]
973
+ },
974
+ "isOptional": false,
975
+ "isSpread": false
976
+ }
977
+ ],
978
+ "returnType": {
979
+ "__schema": "InferenceTypeSchema",
980
+ "location": {
981
+ "filePath": "babel.main.runtime.ts",
982
+ "line": 25,
983
+ "character": 3
984
+ },
985
+ "type": "Promise<BabelMain>"
986
+ },
987
+ "modifiers": [
988
+ "static",
989
+ "async"
990
+ ]
991
+ }
992
+ ],
993
+ "extendsNodes": [],
994
+ "implementNodes": []
995
+ },
996
+ {
997
+ "__schema": "VariableLikeSchema",
998
+ "location": {
999
+ "filePath": "babel.aspect.ts",
1000
+ "line": 3,
1001
+ "character": 14
1002
+ },
1003
+ "signature": "const BabelAspect: Aspect",
1004
+ "name": "BabelAspect",
1005
+ "type": {
1006
+ "__schema": "TypeRefSchema",
1007
+ "location": {
1008
+ "filePath": "babel.aspect.ts",
1009
+ "line": 3,
1010
+ "character": 14
1011
+ },
1012
+ "name": "Aspect",
1013
+ "componentId": {
1014
+ "scope": "teambit.harmony",
1015
+ "name": "harmony",
1016
+ "version": "0.4.6"
1017
+ }
1018
+ },
1019
+ "isOptional": false,
1020
+ "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
1021
+ }
1022
+ ],
1023
+ "internals": []
1024
+ },
1025
+ "internals": [
1026
+ {
1027
+ "__schema": "ModuleSchema",
1028
+ "location": {
1029
+ "filePath": "babel.compiler.ts",
1030
+ "line": 1,
1031
+ "character": 1
1032
+ },
1033
+ "exports": [
1034
+ {
1035
+ "__schema": "ClassSchema",
1036
+ "location": {
1037
+ "filePath": "babel.compiler.ts",
1038
+ "line": 20,
1039
+ "character": 1
1040
+ },
1041
+ "signature": "class BabelCompiler",
1042
+ "name": "BabelCompiler",
1043
+ "members": [
1044
+ {
1045
+ "__schema": "VariableLikeSchema",
1046
+ "location": {
1047
+ "filePath": "babel.compiler.ts",
1048
+ "line": 21,
1049
+ "character": 3
1050
+ },
1051
+ "signature": "(property) BabelCompiler.distDir: string",
1052
+ "name": "distDir",
1053
+ "type": {
1054
+ "__schema": "KeywordTypeSchema",
1055
+ "location": {
1056
+ "filePath": "babel.compiler.ts",
1057
+ "line": 21,
1058
+ "character": 12
1059
+ },
1060
+ "name": "string"
1061
+ },
1062
+ "isOptional": false
1063
+ },
1064
+ {
1065
+ "__schema": "VariableLikeSchema",
1066
+ "location": {
1067
+ "filePath": "babel.compiler.ts",
1068
+ "line": 22,
1069
+ "character": 3
1070
+ },
1071
+ "signature": "(property) BabelCompiler.distGlobPatterns: string[]",
1072
+ "name": "distGlobPatterns",
1073
+ "type": {
1074
+ "__schema": "TypeArraySchema",
1075
+ "location": {
1076
+ "filePath": "babel.compiler.ts",
1077
+ "line": 22,
1078
+ "character": 21
1079
+ },
1080
+ "type": {
1081
+ "__schema": "KeywordTypeSchema",
1082
+ "location": {
1083
+ "filePath": "babel.compiler.ts",
1084
+ "line": 22,
1085
+ "character": 21
1086
+ },
1087
+ "name": "string"
1088
+ }
1089
+ },
1090
+ "isOptional": false
1091
+ },
1092
+ {
1093
+ "__schema": "VariableLikeSchema",
1094
+ "location": {
1095
+ "filePath": "babel.compiler.ts",
1096
+ "line": 23,
1097
+ "character": 3
1098
+ },
1099
+ "signature": "(property) BabelCompiler.shouldCopyNonSupportedFiles: boolean",
1100
+ "name": "shouldCopyNonSupportedFiles",
1101
+ "type": {
1102
+ "__schema": "KeywordTypeSchema",
1103
+ "location": {
1104
+ "filePath": "babel.compiler.ts",
1105
+ "line": 23,
1106
+ "character": 32
1107
+ },
1108
+ "name": "boolean"
1109
+ },
1110
+ "isOptional": false
1111
+ },
1112
+ {
1113
+ "__schema": "VariableLikeSchema",
1114
+ "location": {
1115
+ "filePath": "babel.compiler.ts",
1116
+ "line": 24,
1117
+ "character": 3
1118
+ },
1119
+ "signature": "(property) BabelCompiler.artifactName: string",
1120
+ "name": "artifactName",
1121
+ "type": {
1122
+ "__schema": "KeywordTypeSchema",
1123
+ "location": {
1124
+ "filePath": "babel.compiler.ts",
1125
+ "line": 24,
1126
+ "character": 17
1127
+ },
1128
+ "name": "string"
1129
+ },
1130
+ "isOptional": false
1131
+ },
1132
+ {
1133
+ "__schema": "VariableLikeSchema",
1134
+ "location": {
1135
+ "filePath": "babel.compiler.ts",
1136
+ "line": 25,
1137
+ "character": 3
1138
+ },
1139
+ "signature": "(property) BabelCompiler.supportedFilesGlobPatterns: string[] | null",
1140
+ "name": "supportedFilesGlobPatterns",
1141
+ "type": {
1142
+ "__schema": "TypeUnionSchema",
1143
+ "location": {
1144
+ "filePath": "babel.compiler.ts",
1145
+ "line": 25,
1146
+ "character": 31
1147
+ },
1148
+ "types": [
1149
+ {
1150
+ "__schema": "TypeArraySchema",
1151
+ "location": {
1152
+ "filePath": "babel.compiler.ts",
1153
+ "line": 25,
1154
+ "character": 31
1155
+ },
1156
+ "type": {
1157
+ "__schema": "KeywordTypeSchema",
1158
+ "location": {
1159
+ "filePath": "babel.compiler.ts",
1160
+ "line": 25,
1161
+ "character": 31
1162
+ },
1163
+ "name": "string"
1164
+ }
1165
+ },
1166
+ {
1167
+ "__schema": "LiteralTypeSchema",
1168
+ "location": {
1169
+ "filePath": "babel.compiler.ts",
1170
+ "line": 25,
1171
+ "character": 42
1172
+ },
1173
+ "name": "null"
1174
+ }
1175
+ ]
1176
+ },
1177
+ "isOptional": false
1178
+ },
1179
+ {
1180
+ "__schema": "ConstructorSchema",
1181
+ "location": {
1182
+ "filePath": "babel.compiler.ts",
1183
+ "line": 26,
1184
+ "character": 3
1185
+ },
1186
+ "signature": "constructor BabelCompiler(id: string, logger: Logger, compiler: CompilerMain, options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
1187
+ "name": "constructor",
1188
+ "params": [
1189
+ {
1190
+ "__schema": "ParameterSchema",
1191
+ "location": {
1192
+ "filePath": "babel.compiler.ts",
1193
+ "line": 27,
1194
+ "character": 5
1195
+ },
1196
+ "name": "id",
1197
+ "type": {
1198
+ "__schema": "KeywordTypeSchema",
1199
+ "location": {
1200
+ "filePath": "babel.compiler.ts",
1201
+ "line": 27,
1202
+ "character": 18
1203
+ },
1204
+ "name": "string"
1205
+ },
1206
+ "isOptional": false,
1207
+ "isSpread": false
1208
+ },
1209
+ {
1210
+ "__schema": "ParameterSchema",
1211
+ "location": {
1212
+ "filePath": "babel.compiler.ts",
1213
+ "line": 28,
1214
+ "character": 5
1215
+ },
1216
+ "name": "logger",
1217
+ "type": {
1218
+ "__schema": "TypeRefSchema",
1219
+ "location": {
1220
+ "filePath": "babel.compiler.ts",
1221
+ "line": 28,
1222
+ "character": 21
1223
+ },
1224
+ "name": "Logger"
1225
+ },
1226
+ "isOptional": false,
1227
+ "isSpread": false
1228
+ },
1229
+ {
1230
+ "__schema": "ParameterSchema",
1231
+ "location": {
1232
+ "filePath": "babel.compiler.ts",
1233
+ "line": 29,
1234
+ "character": 5
1235
+ },
1236
+ "name": "compiler",
1237
+ "type": {
1238
+ "__schema": "TypeRefSchema",
1239
+ "location": {
1240
+ "filePath": "babel.compiler.ts",
1241
+ "line": 29,
1242
+ "character": 23
1243
+ },
1244
+ "name": "CompilerMain"
1245
+ },
1246
+ "isOptional": false,
1247
+ "isSpread": false
1248
+ },
1249
+ {
1250
+ "__schema": "ParameterSchema",
1251
+ "location": {
1252
+ "filePath": "babel.compiler.ts",
1253
+ "line": 30,
1254
+ "character": 5
1255
+ },
1256
+ "name": "options",
1257
+ "type": {
1258
+ "__schema": "TypeRefSchema",
1259
+ "location": {
1260
+ "filePath": "babel.compiler.ts",
1261
+ "line": 30,
1262
+ "character": 22
1263
+ },
1264
+ "name": "BabelCompilerOptions"
1265
+ },
1266
+ "isOptional": false,
1267
+ "isSpread": false
1268
+ },
1269
+ {
1270
+ "__schema": "ParameterSchema",
1271
+ "location": {
1272
+ "filePath": "babel.compiler.ts",
1273
+ "line": 31,
1274
+ "character": 5
1275
+ },
1276
+ "name": "babelModule",
1277
+ "type": {
1278
+ "__schema": "InferenceTypeSchema",
1279
+ "location": {
1280
+ "filePath": "babel.compiler.ts",
1281
+ "line": 31,
1282
+ "character": 5
1283
+ },
1284
+ "type": "typeof babel"
1285
+ },
1286
+ "isOptional": true,
1287
+ "defaultValue": "babel",
1288
+ "isSpread": false
1289
+ }
1290
+ ],
1291
+ "returnType": {
1292
+ "__schema": "ThisTypeSchema",
1293
+ "location": {
1294
+ "filePath": "babel.compiler.ts",
1295
+ "line": 20,
1296
+ "character": 1
1297
+ },
1298
+ "name": "BabelCompiler"
1299
+ },
1300
+ "modifiers": []
1301
+ },
1302
+ {
1303
+ "__schema": "VariableLikeSchema",
1304
+ "location": {
1305
+ "filePath": "babel.compiler.ts",
1306
+ "line": 43,
1307
+ "character": 3
1308
+ },
1309
+ "signature": "(property) BabelCompiler.displayName: string",
1310
+ "name": "displayName",
1311
+ "type": {
1312
+ "__schema": "InferenceTypeSchema",
1313
+ "location": {
1314
+ "filePath": "babel.compiler.ts",
1315
+ "line": 43,
1316
+ "character": 3
1317
+ },
1318
+ "type": "string"
1319
+ },
1320
+ "isOptional": true,
1321
+ "defaultValue": "'Babel'"
1322
+ },
1323
+ {
1324
+ "__schema": "VariableLikeSchema",
1325
+ "location": {
1326
+ "filePath": "babel.compiler.ts",
1327
+ "line": 44,
1328
+ "character": 3
1329
+ },
1330
+ "signature": "(property) BabelCompiler.deleteDistDir: boolean",
1331
+ "name": "deleteDistDir",
1332
+ "type": {
1333
+ "__schema": "InferenceTypeSchema",
1334
+ "location": {
1335
+ "filePath": "babel.compiler.ts",
1336
+ "line": 44,
1337
+ "character": 3
1338
+ },
1339
+ "type": "boolean"
1340
+ },
1341
+ "isOptional": true,
1342
+ "defaultValue": "false"
1343
+ },
1344
+ {
1345
+ "__schema": "FunctionLikeSchema",
1346
+ "location": {
1347
+ "filePath": "babel.compiler.ts",
1348
+ "line": 46,
1349
+ "character": 3
1350
+ },
1351
+ "signature": "(method) BabelCompiler.version(): string",
1352
+ "name": "version",
1353
+ "params": [],
1354
+ "returnType": {
1355
+ "__schema": "InferenceTypeSchema",
1356
+ "location": {
1357
+ "filePath": "babel.compiler.ts",
1358
+ "line": 46,
1359
+ "character": 3
1360
+ },
1361
+ "type": "string"
1362
+ },
1363
+ "modifiers": []
1364
+ },
1365
+ {
1366
+ "__schema": "FunctionLikeSchema",
1367
+ "location": {
1368
+ "filePath": "babel.compiler.ts",
1369
+ "line": 50,
1370
+ "character": 3
1371
+ },
1372
+ "signature": "(method) BabelCompiler.getDistDir(): string",
1373
+ "name": "getDistDir",
1374
+ "params": [],
1375
+ "returnType": {
1376
+ "__schema": "InferenceTypeSchema",
1377
+ "location": {
1378
+ "filePath": "babel.compiler.ts",
1379
+ "line": 50,
1380
+ "character": 3
1381
+ },
1382
+ "type": "string"
1383
+ },
1384
+ "modifiers": []
1385
+ },
1386
+ {
1387
+ "__schema": "FunctionLikeSchema",
1388
+ "location": {
1389
+ "filePath": "babel.compiler.ts",
1390
+ "line": 57,
1391
+ "character": 3
1392
+ },
1393
+ "doc": {
1394
+ "__schema": "DocSchema",
1395
+ "location": {
1396
+ "filePath": "babel.compiler.ts",
1397
+ "line": 54,
1398
+ "character": 3
1399
+ },
1400
+ "raw": "/**\n * compile one file on the workspace\n */",
1401
+ "comment": "compile one file on the workspace"
1402
+ },
1403
+ "signature": "(method) BabelCompiler.transpileFile(fileContent: string, options: TranspileFileParams): TranspileFileOutput",
1404
+ "name": "transpileFile",
1405
+ "params": [
1406
+ {
1407
+ "__schema": "ParameterSchema",
1408
+ "location": {
1409
+ "filePath": "babel.compiler.ts",
1410
+ "line": 57,
1411
+ "character": 17
1412
+ },
1413
+ "name": "fileContent",
1414
+ "type": {
1415
+ "__schema": "KeywordTypeSchema",
1416
+ "location": {
1417
+ "filePath": "babel.compiler.ts",
1418
+ "line": 57,
1419
+ "character": 30
1420
+ },
1421
+ "name": "string"
1422
+ },
1423
+ "isOptional": false,
1424
+ "isSpread": false
1425
+ },
1426
+ {
1427
+ "__schema": "ParameterSchema",
1428
+ "location": {
1429
+ "filePath": "babel.compiler.ts",
1430
+ "line": 57,
1431
+ "character": 38
1432
+ },
1433
+ "name": "options",
1434
+ "type": {
1435
+ "__schema": "TypeRefSchema",
1436
+ "location": {
1437
+ "filePath": "babel.compiler.ts",
1438
+ "line": 57,
1439
+ "character": 47
1440
+ },
1441
+ "name": "TranspileFileParams"
1442
+ },
1443
+ "isOptional": false,
1444
+ "isSpread": false
1445
+ }
1446
+ ],
1447
+ "returnType": {
1448
+ "__schema": "TypeRefSchema",
1449
+ "location": {
1450
+ "filePath": "babel.compiler.ts",
1451
+ "line": 57,
1452
+ "character": 3
1453
+ },
1454
+ "name": "TranspileFileOutput",
1455
+ "componentId": {
1456
+ "scope": "teambit.compilation",
1457
+ "name": "compiler"
1458
+ }
1459
+ },
1460
+ "modifiers": []
1461
+ },
1462
+ {
1463
+ "__schema": "FunctionLikeSchema",
1464
+ "location": {
1465
+ "filePath": "babel.compiler.ts",
1466
+ "line": 75,
1467
+ "character": 3
1468
+ },
1469
+ "doc": {
1470
+ "__schema": "DocSchema",
1471
+ "location": {
1472
+ "filePath": "babel.compiler.ts",
1473
+ "line": 72,
1474
+ "character": 3
1475
+ },
1476
+ "raw": "/**\n * compile multiple components on the capsules\n */",
1477
+ "comment": "compile multiple components on the capsules"
1478
+ },
1479
+ "signature": "(method) BabelCompiler.build(context: BuildContext): Promise<BuiltTaskResult>",
1480
+ "name": "build",
1481
+ "params": [
1482
+ {
1483
+ "__schema": "ParameterSchema",
1484
+ "location": {
1485
+ "filePath": "babel.compiler.ts",
1486
+ "line": 75,
1487
+ "character": 15
1488
+ },
1489
+ "name": "context",
1490
+ "type": {
1491
+ "__schema": "TypeRefSchema",
1492
+ "location": {
1493
+ "filePath": "babel.compiler.ts",
1494
+ "line": 75,
1495
+ "character": 24
1496
+ },
1497
+ "name": "BuildContext"
1498
+ },
1499
+ "isOptional": false,
1500
+ "isSpread": false
1501
+ }
1502
+ ],
1503
+ "returnType": {
1504
+ "__schema": "TypeRefSchema",
1505
+ "location": {
1506
+ "filePath": "babel.compiler.ts",
1507
+ "line": 75,
1508
+ "character": 39
1509
+ },
1510
+ "name": "Promise",
1511
+ "typeArgs": [
1512
+ {
1513
+ "__schema": "TypeRefSchema",
1514
+ "location": {
1515
+ "filePath": "babel.compiler.ts",
1516
+ "line": 75,
1517
+ "character": 47
1518
+ },
1519
+ "name": "BuiltTaskResult"
1520
+ }
1521
+ ]
1522
+ },
1523
+ "modifiers": [
1524
+ "async"
1525
+ ]
1526
+ },
1527
+ {
1528
+ "__schema": "FunctionLikeSchema",
1529
+ "location": {
1530
+ "filePath": "babel.compiler.ts",
1531
+ "line": 95,
1532
+ "character": 3
1533
+ },
1534
+ "signature": "(method) BabelCompiler.createTask(name?: string): any",
1535
+ "name": "createTask",
1536
+ "params": [
1537
+ {
1538
+ "__schema": "ParameterSchema",
1539
+ "location": {
1540
+ "filePath": "babel.compiler.ts",
1541
+ "line": 95,
1542
+ "character": 14
1543
+ },
1544
+ "name": "name",
1545
+ "type": {
1546
+ "__schema": "InferenceTypeSchema",
1547
+ "location": {
1548
+ "filePath": "babel.compiler.ts",
1549
+ "line": 95,
1550
+ "character": 14
1551
+ },
1552
+ "type": "string"
1553
+ },
1554
+ "isOptional": true,
1555
+ "defaultValue": "'BabelCompiler'",
1556
+ "isSpread": false
1557
+ }
1558
+ ],
1559
+ "returnType": {
1560
+ "__schema": "InferenceTypeSchema",
1561
+ "location": {
1562
+ "filePath": "babel.compiler.ts",
1563
+ "line": 95,
1564
+ "character": 3
1565
+ },
1566
+ "type": "any"
1567
+ },
1568
+ "modifiers": []
1569
+ },
1570
+ {
1571
+ "__schema": "FunctionLikeSchema",
1572
+ "location": {
1573
+ "filePath": "babel.compiler.ts",
1574
+ "line": 139,
1575
+ "character": 3
1576
+ },
1577
+ "signature": "(method) BabelCompiler.getArtifactDefinition(): {\n generatedBy: string;\n name: string;\n globPatterns: string[];\n}[]",
1578
+ "name": "getArtifactDefinition",
1579
+ "params": [],
1580
+ "returnType": {
1581
+ "__schema": "InferenceTypeSchema",
1582
+ "location": {
1583
+ "filePath": "babel.compiler.ts",
1584
+ "line": 139,
1585
+ "character": 3
1586
+ },
1587
+ "type": "{\n generatedBy: string;\n name: string;\n globPatterns: string[];\n}[]"
1588
+ },
1589
+ "modifiers": []
1590
+ },
1591
+ {
1592
+ "__schema": "FunctionLikeSchema",
1593
+ "location": {
1594
+ "filePath": "babel.compiler.ts",
1595
+ "line": 152,
1596
+ "character": 3
1597
+ },
1598
+ "doc": {
1599
+ "__schema": "DocSchema",
1600
+ "location": {
1601
+ "filePath": "babel.compiler.ts",
1602
+ "line": 149,
1603
+ "character": 3
1604
+ },
1605
+ "raw": "/**\n * given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js\n */",
1606
+ "comment": "given a source file, return its parallel in the dists. e.g. index.ts => dist/index.js"
1607
+ },
1608
+ "signature": "(method) BabelCompiler.getDistPathBySrcPath(srcPath: string): string",
1609
+ "name": "getDistPathBySrcPath",
1610
+ "params": [
1611
+ {
1612
+ "__schema": "ParameterSchema",
1613
+ "location": {
1614
+ "filePath": "babel.compiler.ts",
1615
+ "line": 152,
1616
+ "character": 24
1617
+ },
1618
+ "name": "srcPath",
1619
+ "type": {
1620
+ "__schema": "KeywordTypeSchema",
1621
+ "location": {
1622
+ "filePath": "babel.compiler.ts",
1623
+ "line": 152,
1624
+ "character": 33
1625
+ },
1626
+ "name": "string"
1627
+ },
1628
+ "isOptional": false,
1629
+ "isSpread": false
1630
+ }
1631
+ ],
1632
+ "returnType": {
1633
+ "__schema": "InferenceTypeSchema",
1634
+ "location": {
1635
+ "filePath": "babel.compiler.ts",
1636
+ "line": 152,
1637
+ "character": 3
1638
+ },
1639
+ "type": "string"
1640
+ },
1641
+ "modifiers": []
1642
+ },
1643
+ {
1644
+ "__schema": "FunctionLikeSchema",
1645
+ "location": {
1646
+ "filePath": "babel.compiler.ts",
1647
+ "line": 160,
1648
+ "character": 3
1649
+ },
1650
+ "doc": {
1651
+ "__schema": "DocSchema",
1652
+ "location": {
1653
+ "filePath": "babel.compiler.ts",
1654
+ "line": 157,
1655
+ "character": 3
1656
+ },
1657
+ "raw": "/**\n * whether babel is able to compile the given path\n */",
1658
+ "comment": "whether babel is able to compile the given path"
1659
+ },
1660
+ "signature": "(method) BabelCompiler.isFileSupported(filePath: string): boolean",
1661
+ "name": "isFileSupported",
1662
+ "params": [
1663
+ {
1664
+ "__schema": "ParameterSchema",
1665
+ "location": {
1666
+ "filePath": "babel.compiler.ts",
1667
+ "line": 160,
1668
+ "character": 19
1669
+ },
1670
+ "name": "filePath",
1671
+ "type": {
1672
+ "__schema": "KeywordTypeSchema",
1673
+ "location": {
1674
+ "filePath": "babel.compiler.ts",
1675
+ "line": 160,
1676
+ "character": 29
1677
+ },
1678
+ "name": "string"
1679
+ },
1680
+ "isOptional": false,
1681
+ "isSpread": false
1682
+ }
1683
+ ],
1684
+ "returnType": {
1685
+ "__schema": "KeywordTypeSchema",
1686
+ "location": {
1687
+ "filePath": "babel.compiler.ts",
1688
+ "line": 160,
1689
+ "character": 38
1690
+ },
1691
+ "name": "boolean"
1692
+ },
1693
+ "modifiers": []
1694
+ },
1695
+ {
1696
+ "__schema": "FunctionLikeSchema",
1697
+ "location": {
1698
+ "filePath": "babel.compiler.ts",
1699
+ "line": 167,
1700
+ "character": 3
1701
+ },
1702
+ "signature": "(method) BabelCompiler.displayConfig(): string",
1703
+ "name": "displayConfig",
1704
+ "params": [],
1705
+ "returnType": {
1706
+ "__schema": "InferenceTypeSchema",
1707
+ "location": {
1708
+ "filePath": "babel.compiler.ts",
1709
+ "line": 167,
1710
+ "character": 3
1711
+ },
1712
+ "type": "string"
1713
+ },
1714
+ "modifiers": []
1715
+ }
1716
+ ],
1717
+ "extendsNodes": [],
1718
+ "implementNodes": [
1719
+ {
1720
+ "__schema": "ExpressionWithTypeArgumentsSchema",
1721
+ "location": {
1722
+ "filePath": "babel.compiler.ts",
1723
+ "line": 20,
1724
+ "character": 39
1725
+ },
1726
+ "name": "implements Compiler",
1727
+ "typeArgs": [],
1728
+ "expression": {
1729
+ "__schema": "TypeRefSchema",
1730
+ "location": {
1731
+ "filePath": "babel.compiler.ts",
1732
+ "line": 20,
1733
+ "character": 39
1734
+ },
1735
+ "name": "Compiler",
1736
+ "componentId": {
1737
+ "_legacy": {
1738
+ "scope": "teambit.compilation",
1739
+ "name": "babel",
1740
+ "version": "1.0.159"
1741
+ },
1742
+ "_scope": "teambit.compilation"
1743
+ }
1744
+ }
1745
+ }
1746
+ ]
1747
+ }
1748
+ ],
1749
+ "internals": []
1750
+ },
1751
+ {
1752
+ "__schema": "ModuleSchema",
1753
+ "location": {
1754
+ "filePath": "babel.main.runtime.ts",
1755
+ "line": 1,
1756
+ "character": 1
1757
+ },
1758
+ "exports": [
1759
+ {
1760
+ "__schema": "ClassSchema",
1761
+ "location": {
1762
+ "filePath": "babel.main.runtime.ts",
1763
+ "line": 9,
1764
+ "character": 1
1765
+ },
1766
+ "signature": "class BabelMain",
1767
+ "name": "BabelMain",
1768
+ "members": [
1769
+ {
1770
+ "__schema": "ConstructorSchema",
1771
+ "location": {
1772
+ "filePath": "babel.main.runtime.ts",
1773
+ "line": 10,
1774
+ "character": 3
1775
+ },
1776
+ "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
1777
+ "name": "constructor",
1778
+ "params": [
1779
+ {
1780
+ "__schema": "ParameterSchema",
1781
+ "location": {
1782
+ "filePath": "babel.main.runtime.ts",
1783
+ "line": 10,
1784
+ "character": 15
1785
+ },
1786
+ "name": "logger",
1787
+ "type": {
1788
+ "__schema": "TypeRefSchema",
1789
+ "location": {
1790
+ "filePath": "babel.main.runtime.ts",
1791
+ "line": 10,
1792
+ "character": 31
1793
+ },
1794
+ "name": "Logger"
1795
+ },
1796
+ "isOptional": false,
1797
+ "isSpread": false
1798
+ },
1799
+ {
1800
+ "__schema": "ParameterSchema",
1801
+ "location": {
1802
+ "filePath": "babel.main.runtime.ts",
1803
+ "line": 10,
1804
+ "character": 39
1805
+ },
1806
+ "name": "compiler",
1807
+ "type": {
1808
+ "__schema": "TypeRefSchema",
1809
+ "location": {
1810
+ "filePath": "babel.main.runtime.ts",
1811
+ "line": 10,
1812
+ "character": 57
1813
+ },
1814
+ "name": "CompilerMain"
1815
+ },
1816
+ "isOptional": false,
1817
+ "isSpread": false
1818
+ }
1819
+ ],
1820
+ "returnType": {
1821
+ "__schema": "ThisTypeSchema",
1822
+ "location": {
1823
+ "filePath": "babel.main.runtime.ts",
1824
+ "line": 9,
1825
+ "character": 1
1826
+ },
1827
+ "name": "BabelMain"
1828
+ },
1829
+ "modifiers": []
1830
+ },
1831
+ {
1832
+ "__schema": "FunctionLikeSchema",
1833
+ "location": {
1834
+ "filePath": "babel.main.runtime.ts",
1835
+ "line": 12,
1836
+ "character": 3
1837
+ },
1838
+ "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
1839
+ "name": "createCompiler",
1840
+ "params": [
1841
+ {
1842
+ "__schema": "ParameterSchema",
1843
+ "location": {
1844
+ "filePath": "babel.main.runtime.ts",
1845
+ "line": 12,
1846
+ "character": 18
1847
+ },
1848
+ "name": "options",
1849
+ "type": {
1850
+ "__schema": "TypeRefSchema",
1851
+ "location": {
1852
+ "filePath": "babel.main.runtime.ts",
1853
+ "line": 12,
1854
+ "character": 27
1855
+ },
1856
+ "name": "BabelCompilerOptions"
1857
+ },
1858
+ "isOptional": false,
1859
+ "isSpread": false
1860
+ },
1861
+ {
1862
+ "__schema": "ParameterSchema",
1863
+ "location": {
1864
+ "filePath": "babel.main.runtime.ts",
1865
+ "line": 12,
1866
+ "character": 49
1867
+ },
1868
+ "name": "babelModule",
1869
+ "type": {
1870
+ "__schema": "InferenceTypeSchema",
1871
+ "location": {
1872
+ "filePath": "babel.main.runtime.ts",
1873
+ "line": 12,
1874
+ "character": 49
1875
+ },
1876
+ "type": "typeof babel"
1877
+ },
1878
+ "isOptional": true,
1879
+ "defaultValue": "babel",
1880
+ "isSpread": false
1881
+ }
1882
+ ],
1883
+ "returnType": {
1884
+ "__schema": "TypeRefSchema",
1885
+ "location": {
1886
+ "filePath": "babel.main.runtime.ts",
1887
+ "line": 12,
1888
+ "character": 3
1889
+ },
1890
+ "name": "BabelCompiler"
1891
+ },
1892
+ "modifiers": []
1893
+ },
1894
+ {
1895
+ "__schema": "FunctionLikeSchema",
1896
+ "location": {
1897
+ "filePath": "babel.main.runtime.ts",
1898
+ "line": 16,
1899
+ "character": 3
1900
+ },
1901
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
1902
+ "name": "getPackageJsonProps",
1903
+ "params": [],
1904
+ "returnType": {
1905
+ "__schema": "InferenceTypeSchema",
1906
+ "location": {
1907
+ "filePath": "babel.main.runtime.ts",
1908
+ "line": 16,
1909
+ "character": 3
1910
+ },
1911
+ "type": "{\n main: string;\n}"
1912
+ },
1913
+ "modifiers": []
1914
+ },
1915
+ {
1916
+ "__schema": "VariableLikeSchema",
1917
+ "location": {
1918
+ "filePath": "babel.main.runtime.ts",
1919
+ "line": 22,
1920
+ "character": 3
1921
+ },
1922
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
1923
+ "name": "runtime",
1924
+ "type": {
1925
+ "__schema": "InferenceTypeSchema",
1926
+ "location": {
1927
+ "filePath": "babel.main.runtime.ts",
1928
+ "line": 22,
1929
+ "character": 3
1930
+ },
1931
+ "type": "RuntimeDefinition"
1932
+ },
1933
+ "isOptional": true,
1934
+ "defaultValue": "MainRuntime"
1935
+ },
1936
+ {
1937
+ "__schema": "VariableLikeSchema",
1938
+ "location": {
1939
+ "filePath": "babel.main.runtime.ts",
1940
+ "line": 23,
1941
+ "character": 3
1942
+ },
1943
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
1944
+ "name": "dependencies",
1945
+ "type": {
1946
+ "__schema": "InferenceTypeSchema",
1947
+ "location": {
1948
+ "filePath": "babel.main.runtime.ts",
1949
+ "line": 23,
1950
+ "character": 3
1951
+ },
1952
+ "type": "Aspect[]"
1953
+ },
1954
+ "isOptional": true,
1955
+ "defaultValue": "[LoggerAspect, CompilerAspect]"
1956
+ },
1957
+ {
1958
+ "__schema": "FunctionLikeSchema",
1959
+ "location": {
1960
+ "filePath": "babel.main.runtime.ts",
1961
+ "line": 25,
1962
+ "character": 3
1963
+ },
1964
+ "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
1965
+ "name": "provider",
1966
+ "params": [
1967
+ {
1968
+ "__schema": "ParameterSchema",
1969
+ "location": {
1970
+ "filePath": "babel.main.runtime.ts",
1971
+ "line": 25,
1972
+ "character": 25
1973
+ },
1974
+ "name": "[ loggerExt, compiler ]",
1975
+ "type": {
1976
+ "__schema": "TupleTypeSchema",
1977
+ "location": {
1978
+ "filePath": "babel.main.runtime.ts",
1979
+ "line": 25,
1980
+ "character": 48
1981
+ },
1982
+ "elements": [
1983
+ {
1984
+ "__schema": "TypeRefSchema",
1985
+ "location": {
1986
+ "filePath": "babel.main.runtime.ts",
1987
+ "line": 25,
1988
+ "character": 49
1989
+ },
1990
+ "name": "LoggerMain"
1991
+ },
1992
+ {
1993
+ "__schema": "TypeRefSchema",
1994
+ "location": {
1995
+ "filePath": "babel.main.runtime.ts",
1996
+ "line": 25,
1997
+ "character": 61
1998
+ },
1999
+ "name": "CompilerMain"
2000
+ }
2001
+ ]
2002
+ },
2003
+ "isOptional": false,
2004
+ "isSpread": false
2005
+ }
2006
+ ],
2007
+ "returnType": {
2008
+ "__schema": "InferenceTypeSchema",
2009
+ "location": {
2010
+ "filePath": "babel.main.runtime.ts",
2011
+ "line": 25,
2012
+ "character": 3
2013
+ },
2014
+ "type": "Promise<BabelMain>"
2015
+ },
2016
+ "modifiers": [
2017
+ "static",
2018
+ "async"
2019
+ ]
2020
+ }
2021
+ ],
2022
+ "extendsNodes": [],
2023
+ "implementNodes": []
2024
+ }
2025
+ ],
2026
+ "internals": [
2027
+ {
2028
+ "__schema": "UnImplementedSchema",
2029
+ "location": {
2030
+ "filePath": "babel.main.runtime.ts",
2031
+ "line": 31,
2032
+ "character": 1
2033
+ },
2034
+ "name": "BabelAspect.addRuntime(BabelMain);",
2035
+ "type": "ExpressionStatement"
2036
+ }
2037
+ ]
2038
+ },
2039
+ {
2040
+ "__schema": "ModuleSchema",
2041
+ "location": {
2042
+ "filePath": "babel.aspect.ts",
2043
+ "line": 1,
2044
+ "character": 1
2045
+ },
2046
+ "exports": [
2047
+ {
2048
+ "__schema": "VariableLikeSchema",
2049
+ "location": {
2050
+ "filePath": "babel.aspect.ts",
2051
+ "line": 3,
2052
+ "character": 14
2053
+ },
2054
+ "signature": "const BabelAspect: Aspect",
2055
+ "name": "BabelAspect",
2056
+ "type": {
2057
+ "__schema": "TypeRefSchema",
2058
+ "location": {
2059
+ "filePath": "babel.aspect.ts",
2060
+ "line": 3,
2061
+ "character": 14
2062
+ },
2063
+ "name": "Aspect",
2064
+ "componentId": {
2065
+ "scope": "teambit.harmony",
2066
+ "name": "harmony",
2067
+ "version": "0.4.6"
2068
+ }
2069
+ },
2070
+ "isOptional": false,
2071
+ "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
2072
+ }
2073
+ ],
2074
+ "internals": []
2075
+ }
2076
+ ],
2077
+ "componentId": {
2078
+ "scope": "teambit.compilation",
2079
+ "name": "babel",
2080
+ "version": "1.0.159"
2081
+ },
2082
+ "taggedModuleExports": []
2083
+ }