@teambit/multi-compiler 1.0.187 → 1.0.189
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.
- package/artifacts/__bit_junit.xml +1 -1
- package/artifacts/preview/teambit_compilation_multi_compiler-preview.js +1 -1
- package/artifacts/schema.json +137 -31
- package/dist/index.js.map +1 -1
- package/dist/multi-compiler.aspect.js.map +1 -1
- package/dist/multi-compiler.compiler.js.map +1 -1
- package/dist/multi-compiler.composition.js.map +1 -1
- package/dist/multi-compiler.main.runtime.js.map +1 -1
- package/dist/preview-1710224484125.js +7 -0
- package/package.json +7 -7
- package/dist/preview-1709867881461.js +0 -7
@@ -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/multi-compiler@1.0.
|
3
|
+
<testsuite name="teambit.compilation/multi-compiler@1.0.189" 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/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-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/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-preview"]=t()}(self,(()=>(()=>{"use strict";var e={17221:(e,t,o)=>{Object.defineProperty(t,"b",{enumerable:!0,get:function(){return n.default}});var n=r(o(98729));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0}},98729:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,p(o(41594));var r=o(5016),i=["components"];function p(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 o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},l.apply(this,arguments)}function a(e,t){if(null==e)return{};var o,n,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}p.__bit_component=n,l.__bit_component=n,a.__bit_component=n,c.__bit_component=n;var m={},u="wrapper";function s(e){var t=e.components,o=a(e,i);return(0,r.mdx)(u,l({},m,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the ",(0,r.mdx)("inlineCode",{parentName:"p"},"isFileSupported()")," compiler API."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"createCompiler(compilers: Compiler[], options: CompilerOptions)")," API to support the creation a Multi-compiler instance which can be used in the Env API (the ",(0,r.mdx)("inlineCode",{parentName:"li"},"overrideCompiler")," and ",(0,r.mdx)("inlineCode",{parentName:"li"},"getCompiler")," APIs)."),(0,r.mdx)("li",{parentName:"ul"},"Supports the creation of a multi-compiler build tasks.")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))}s.__bit_component=n,s.isMDXComponent=!0},96136:(e,t,o)=>{var n={id:"teambit.compilation/multi-compiler@1.0.189",homepage:"https://bit.cloud/teambit/compilation/multi-compiler",exported:!0};function r(){const e=i(o(41594));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=n,i.__bit_component=n;const p=()=>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/multi-complier.svg"}));p.__bit_component=n,t.Logo=p},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>s,compositions_metadata:()=>f,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>u});var t=o(96136),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var p=o(17221),l=["components"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},a.apply(this,arguments)}var c={},m="wrapper";function u(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,l);return(0,r.mdx)(m,a({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{MultiCompiler:p.b},mdxType:"MDXScopeProvider"},(0,r.mdx)(p.b,{mdxType:"MultiCompiler"})))}u.isMDXComponent=!0;const s=[t],d=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
|
package/artifacts/schema.json
CHANGED
@@ -104,7 +104,11 @@
|
|
104
104
|
"line": 11,
|
105
105
|
"character": 29
|
106
106
|
},
|
107
|
-
"name": "Compiler"
|
107
|
+
"name": "Compiler",
|
108
|
+
"componentId": {
|
109
|
+
"scope": "teambit.compilation",
|
110
|
+
"name": "compiler"
|
111
|
+
}
|
108
112
|
}
|
109
113
|
},
|
110
114
|
"isOptional": false,
|
@@ -134,7 +138,11 @@
|
|
134
138
|
"line": 11,
|
135
139
|
"character": 58
|
136
140
|
},
|
137
|
-
"name": "CompilerOptions"
|
141
|
+
"name": "CompilerOptions",
|
142
|
+
"componentId": {
|
143
|
+
"scope": "teambit.compilation",
|
144
|
+
"name": "compiler"
|
145
|
+
}
|
138
146
|
}
|
139
147
|
]
|
140
148
|
},
|
@@ -328,7 +336,11 @@
|
|
328
336
|
"line": 29,
|
329
337
|
"character": 25
|
330
338
|
},
|
331
|
-
"name": "Compiler"
|
339
|
+
"name": "Compiler",
|
340
|
+
"componentId": {
|
341
|
+
"scope": "teambit.compilation",
|
342
|
+
"name": "compiler"
|
343
|
+
}
|
332
344
|
}
|
333
345
|
},
|
334
346
|
"isOptional": false,
|
@@ -358,7 +370,11 @@
|
|
358
370
|
"line": 30,
|
359
371
|
"character": 39
|
360
372
|
},
|
361
|
-
"name": "CompilerOptions"
|
373
|
+
"name": "CompilerOptions",
|
374
|
+
"componentId": {
|
375
|
+
"scope": "teambit.compilation",
|
376
|
+
"name": "compiler"
|
377
|
+
}
|
362
378
|
}
|
363
379
|
]
|
364
380
|
},
|
@@ -381,7 +397,8 @@
|
|
381
397
|
"line": 31,
|
382
398
|
"character": 23
|
383
399
|
},
|
384
|
-
"name": "MultiCompilerOptions"
|
400
|
+
"name": "MultiCompilerOptions",
|
401
|
+
"internalFilePath": "multi-compiler.compiler.ts"
|
385
402
|
},
|
386
403
|
"isOptional": true,
|
387
404
|
"defaultValue": "{}",
|
@@ -517,7 +534,11 @@
|
|
517
534
|
"line": 70,
|
518
535
|
"character": 53
|
519
536
|
},
|
520
|
-
"name": "TranspileFileParams"
|
537
|
+
"name": "TranspileFileParams",
|
538
|
+
"componentId": {
|
539
|
+
"scope": "teambit.compilation",
|
540
|
+
"name": "compiler"
|
541
|
+
}
|
521
542
|
},
|
522
543
|
"isOptional": false,
|
523
544
|
"isSpread": false
|
@@ -539,7 +560,11 @@
|
|
539
560
|
"line": 70,
|
540
561
|
"character": 83
|
541
562
|
},
|
542
|
-
"name": "TranspileFileOutput"
|
563
|
+
"name": "TranspileFileOutput",
|
564
|
+
"componentId": {
|
565
|
+
"scope": "teambit.compilation",
|
566
|
+
"name": "compiler"
|
567
|
+
}
|
543
568
|
}
|
544
569
|
]
|
545
570
|
},
|
@@ -572,7 +597,11 @@
|
|
572
597
|
"line": 99,
|
573
598
|
"character": 36
|
574
599
|
},
|
575
|
-
"name": "TranspileComponentParams"
|
600
|
+
"name": "TranspileComponentParams",
|
601
|
+
"componentId": {
|
602
|
+
"scope": "teambit.compilation",
|
603
|
+
"name": "compiler"
|
604
|
+
}
|
576
605
|
},
|
577
606
|
"isOptional": false,
|
578
607
|
"isSpread": false
|
@@ -627,7 +656,11 @@
|
|
627
656
|
"line": 107,
|
628
657
|
"character": 24
|
629
658
|
},
|
630
|
-
"name": "BuildContext"
|
659
|
+
"name": "BuildContext",
|
660
|
+
"componentId": {
|
661
|
+
"scope": "teambit.pipelines",
|
662
|
+
"name": "builder"
|
663
|
+
}
|
631
664
|
},
|
632
665
|
"isOptional": false,
|
633
666
|
"isSpread": false
|
@@ -649,7 +682,11 @@
|
|
649
682
|
"line": 107,
|
650
683
|
"character": 47
|
651
684
|
},
|
652
|
-
"name": "BuiltTaskResult"
|
685
|
+
"name": "BuiltTaskResult",
|
686
|
+
"componentId": {
|
687
|
+
"scope": "teambit.pipelines",
|
688
|
+
"name": "builder"
|
689
|
+
}
|
653
690
|
}
|
654
691
|
]
|
655
692
|
},
|
@@ -682,7 +719,11 @@
|
|
682
719
|
"line": 119,
|
683
720
|
"character": 27
|
684
721
|
},
|
685
|
-
"name": "BuildContext"
|
722
|
+
"name": "BuildContext",
|
723
|
+
"componentId": {
|
724
|
+
"scope": "teambit.pipelines",
|
725
|
+
"name": "builder"
|
726
|
+
}
|
686
727
|
},
|
687
728
|
"isOptional": false,
|
688
729
|
"isSpread": false
|
@@ -726,7 +767,11 @@
|
|
726
767
|
"line": 128,
|
727
768
|
"character": 28
|
728
769
|
},
|
729
|
-
"name": "BuildContext"
|
770
|
+
"name": "BuildContext",
|
771
|
+
"componentId": {
|
772
|
+
"scope": "teambit.pipelines",
|
773
|
+
"name": "builder"
|
774
|
+
}
|
730
775
|
},
|
731
776
|
"isOptional": false,
|
732
777
|
"isSpread": false
|
@@ -746,7 +791,11 @@
|
|
746
791
|
"line": 128,
|
747
792
|
"character": 55
|
748
793
|
},
|
749
|
-
"name": "TaskResultsList"
|
794
|
+
"name": "TaskResultsList",
|
795
|
+
"componentId": {
|
796
|
+
"scope": "teambit.pipelines",
|
797
|
+
"name": "builder"
|
798
|
+
}
|
750
799
|
},
|
751
800
|
"isOptional": false,
|
752
801
|
"isSpread": false
|
@@ -790,7 +839,11 @@
|
|
790
839
|
"line": 141,
|
791
840
|
"character": 42
|
792
841
|
},
|
793
|
-
"name": "Component"
|
842
|
+
"name": "Component",
|
843
|
+
"componentId": {
|
844
|
+
"scope": "teambit.component",
|
845
|
+
"name": "component"
|
846
|
+
}
|
794
847
|
},
|
795
848
|
"isOptional": false,
|
796
849
|
"isSpread": false
|
@@ -966,7 +1019,7 @@
|
|
966
1019
|
"_legacy": {
|
967
1020
|
"scope": "teambit.compilation",
|
968
1021
|
"name": "multi-compiler",
|
969
|
-
"version": "1.0.
|
1022
|
+
"version": "1.0.189"
|
970
1023
|
},
|
971
1024
|
"_scope": "teambit.compilation"
|
972
1025
|
}
|
@@ -1098,7 +1151,11 @@
|
|
1098
1151
|
"line": 11,
|
1099
1152
|
"character": 29
|
1100
1153
|
},
|
1101
|
-
"name": "Compiler"
|
1154
|
+
"name": "Compiler",
|
1155
|
+
"componentId": {
|
1156
|
+
"scope": "teambit.compilation",
|
1157
|
+
"name": "compiler"
|
1158
|
+
}
|
1102
1159
|
}
|
1103
1160
|
},
|
1104
1161
|
"isOptional": false,
|
@@ -1128,7 +1185,11 @@
|
|
1128
1185
|
"line": 11,
|
1129
1186
|
"character": 58
|
1130
1187
|
},
|
1131
|
-
"name": "CompilerOptions"
|
1188
|
+
"name": "CompilerOptions",
|
1189
|
+
"componentId": {
|
1190
|
+
"scope": "teambit.compilation",
|
1191
|
+
"name": "compiler"
|
1192
|
+
}
|
1132
1193
|
}
|
1133
1194
|
]
|
1134
1195
|
},
|
@@ -1384,7 +1445,11 @@
|
|
1384
1445
|
"line": 29,
|
1385
1446
|
"character": 25
|
1386
1447
|
},
|
1387
|
-
"name": "Compiler"
|
1448
|
+
"name": "Compiler",
|
1449
|
+
"componentId": {
|
1450
|
+
"scope": "teambit.compilation",
|
1451
|
+
"name": "compiler"
|
1452
|
+
}
|
1388
1453
|
}
|
1389
1454
|
},
|
1390
1455
|
"isOptional": false,
|
@@ -1414,7 +1479,11 @@
|
|
1414
1479
|
"line": 30,
|
1415
1480
|
"character": 39
|
1416
1481
|
},
|
1417
|
-
"name": "CompilerOptions"
|
1482
|
+
"name": "CompilerOptions",
|
1483
|
+
"componentId": {
|
1484
|
+
"scope": "teambit.compilation",
|
1485
|
+
"name": "compiler"
|
1486
|
+
}
|
1418
1487
|
}
|
1419
1488
|
]
|
1420
1489
|
},
|
@@ -1437,7 +1506,8 @@
|
|
1437
1506
|
"line": 31,
|
1438
1507
|
"character": 23
|
1439
1508
|
},
|
1440
|
-
"name": "MultiCompilerOptions"
|
1509
|
+
"name": "MultiCompilerOptions",
|
1510
|
+
"internalFilePath": "multi-compiler.compiler.ts"
|
1441
1511
|
},
|
1442
1512
|
"isOptional": true,
|
1443
1513
|
"defaultValue": "{}",
|
@@ -1573,7 +1643,11 @@
|
|
1573
1643
|
"line": 70,
|
1574
1644
|
"character": 53
|
1575
1645
|
},
|
1576
|
-
"name": "TranspileFileParams"
|
1646
|
+
"name": "TranspileFileParams",
|
1647
|
+
"componentId": {
|
1648
|
+
"scope": "teambit.compilation",
|
1649
|
+
"name": "compiler"
|
1650
|
+
}
|
1577
1651
|
},
|
1578
1652
|
"isOptional": false,
|
1579
1653
|
"isSpread": false
|
@@ -1595,7 +1669,11 @@
|
|
1595
1669
|
"line": 70,
|
1596
1670
|
"character": 83
|
1597
1671
|
},
|
1598
|
-
"name": "TranspileFileOutput"
|
1672
|
+
"name": "TranspileFileOutput",
|
1673
|
+
"componentId": {
|
1674
|
+
"scope": "teambit.compilation",
|
1675
|
+
"name": "compiler"
|
1676
|
+
}
|
1599
1677
|
}
|
1600
1678
|
]
|
1601
1679
|
},
|
@@ -1628,7 +1706,11 @@
|
|
1628
1706
|
"line": 99,
|
1629
1707
|
"character": 36
|
1630
1708
|
},
|
1631
|
-
"name": "TranspileComponentParams"
|
1709
|
+
"name": "TranspileComponentParams",
|
1710
|
+
"componentId": {
|
1711
|
+
"scope": "teambit.compilation",
|
1712
|
+
"name": "compiler"
|
1713
|
+
}
|
1632
1714
|
},
|
1633
1715
|
"isOptional": false,
|
1634
1716
|
"isSpread": false
|
@@ -1683,7 +1765,11 @@
|
|
1683
1765
|
"line": 107,
|
1684
1766
|
"character": 24
|
1685
1767
|
},
|
1686
|
-
"name": "BuildContext"
|
1768
|
+
"name": "BuildContext",
|
1769
|
+
"componentId": {
|
1770
|
+
"scope": "teambit.pipelines",
|
1771
|
+
"name": "builder"
|
1772
|
+
}
|
1687
1773
|
},
|
1688
1774
|
"isOptional": false,
|
1689
1775
|
"isSpread": false
|
@@ -1705,7 +1791,11 @@
|
|
1705
1791
|
"line": 107,
|
1706
1792
|
"character": 47
|
1707
1793
|
},
|
1708
|
-
"name": "BuiltTaskResult"
|
1794
|
+
"name": "BuiltTaskResult",
|
1795
|
+
"componentId": {
|
1796
|
+
"scope": "teambit.pipelines",
|
1797
|
+
"name": "builder"
|
1798
|
+
}
|
1709
1799
|
}
|
1710
1800
|
]
|
1711
1801
|
},
|
@@ -1738,7 +1828,11 @@
|
|
1738
1828
|
"line": 119,
|
1739
1829
|
"character": 27
|
1740
1830
|
},
|
1741
|
-
"name": "BuildContext"
|
1831
|
+
"name": "BuildContext",
|
1832
|
+
"componentId": {
|
1833
|
+
"scope": "teambit.pipelines",
|
1834
|
+
"name": "builder"
|
1835
|
+
}
|
1742
1836
|
},
|
1743
1837
|
"isOptional": false,
|
1744
1838
|
"isSpread": false
|
@@ -1782,7 +1876,11 @@
|
|
1782
1876
|
"line": 128,
|
1783
1877
|
"character": 28
|
1784
1878
|
},
|
1785
|
-
"name": "BuildContext"
|
1879
|
+
"name": "BuildContext",
|
1880
|
+
"componentId": {
|
1881
|
+
"scope": "teambit.pipelines",
|
1882
|
+
"name": "builder"
|
1883
|
+
}
|
1786
1884
|
},
|
1787
1885
|
"isOptional": false,
|
1788
1886
|
"isSpread": false
|
@@ -1802,7 +1900,11 @@
|
|
1802
1900
|
"line": 128,
|
1803
1901
|
"character": 55
|
1804
1902
|
},
|
1805
|
-
"name": "TaskResultsList"
|
1903
|
+
"name": "TaskResultsList",
|
1904
|
+
"componentId": {
|
1905
|
+
"scope": "teambit.pipelines",
|
1906
|
+
"name": "builder"
|
1907
|
+
}
|
1806
1908
|
},
|
1807
1909
|
"isOptional": false,
|
1808
1910
|
"isSpread": false
|
@@ -1846,7 +1948,11 @@
|
|
1846
1948
|
"line": 141,
|
1847
1949
|
"character": 42
|
1848
1950
|
},
|
1849
|
-
"name": "Component"
|
1951
|
+
"name": "Component",
|
1952
|
+
"componentId": {
|
1953
|
+
"scope": "teambit.component",
|
1954
|
+
"name": "component"
|
1955
|
+
}
|
1850
1956
|
},
|
1851
1957
|
"isOptional": false,
|
1852
1958
|
"isSpread": false
|
@@ -2022,7 +2128,7 @@
|
|
2022
2128
|
"_legacy": {
|
2023
2129
|
"scope": "teambit.compilation",
|
2024
2130
|
"name": "multi-compiler",
|
2025
|
-
"version": "1.0.
|
2131
|
+
"version": "1.0.189"
|
2026
2132
|
},
|
2027
2133
|
"_scope": "teambit.compilation"
|
2028
2134
|
}
|
@@ -2037,7 +2143,7 @@
|
|
2037
2143
|
"componentId": {
|
2038
2144
|
"scope": "teambit.compilation",
|
2039
2145
|
"name": "multi-compiler",
|
2040
|
-
"version": "1.0.
|
2146
|
+
"version": "1.0.189"
|
2041
2147
|
},
|
2042
2148
|
"taggedModuleExports": []
|
2043
2149
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_multiCompiler","data","require","_default","exports","default","MultiCompilerAspect"],"sources":["index.ts"],"sourcesContent":["import { MultiCompilerAspect } from './multi-compiler.aspect';\n\nexport { MultiCompilerAspect };\nexport type { MultiCompilerMain } from './multi-compiler.main.runtime';\nexport type { MultiCompiler } from './multi-compiler.compiler';\nexport default MultiCompilerAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAK/CC,oCAAmB"}
|
1
|
+
{"version":3,"names":["_multiCompiler","data","require","_default","exports","default","MultiCompilerAspect"],"sources":["index.ts"],"sourcesContent":["import { MultiCompilerAspect } from './multi-compiler.aspect';\n\nexport { MultiCompilerAspect };\nexport type { MultiCompilerMain } from './multi-compiler.main.runtime';\nexport type { MultiCompiler } from './multi-compiler.compiler';\nexport default MultiCompilerAspect;\n"],"mappings":";;;;;;;;;;;;AAAA,SAAAA,eAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,cAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA8D,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAK/CC,oCAAmB","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_harmony","data","require","MultiCompilerAspect","exports","Aspect","create","id"],"sources":["multi-compiler.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MultiCompilerAspect = Aspect.create({\n id: 'teambit.compilation/multi-compiler',\n});\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["_harmony","data","require","MultiCompilerAspect","exports","Aspect","create","id"],"sources":["multi-compiler.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const MultiCompilerAspect = Aspect.create({\n id: 'teambit.compilation/multi-compiler',\n});\n"],"mappings":";;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEO,MAAME,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EAC/CC,EAAE,EAAE;AACN,CAAC,CAAC","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_path","data","require","_pMapSeries","_interopRequireDefault","_pipelinesModules","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MultiCompiler","constructor","id","compilers","compilerOptions","options","shouldCopyNonSupportedFiles","getDistDir","distDir","getArtifactDefinition","generatedBy","name","artifactName","globPatterns","distGlobPatterns","getOptions","defaultOpts","targetExtension","assign","displayConfig","map","compiler","displayName","join","transpileFile","fileContent","outputs","reduce","files","filesToTranspile","flatMap","pMapSeries","file","isFileSupported","outputPath","params","filePath","compiledContent","outputText","flat","Promise","resolve","transpileComponent","all","build","context","builds","buildResult","componentsResults","mergeComponentResults","artifacts","preBuild","postBuild","taskResults","firstMatchedCompiler","find","getPreviewComponentRootPath","component","matchedCompiler","getDistPathBySrcPath","srcPath","version","exports"],"sources":["multi-compiler.compiler.ts"],"sourcesContent":["import { join } from 'path';\nimport pMapSeries from 'p-map-series';\nimport {\n Compiler,\n CompilerOptions,\n TranspileComponentParams,\n TranspileFileOutput,\n TranspileFileParams,\n} from '@teambit/compiler';\nimport { BuiltTaskResult, BuildContext, TaskResultsList } from '@teambit/builder';\nimport { mergeComponentResults } from '@teambit/pipelines.modules.merge-component-results';\nimport { Component } from '@teambit/component';\n\nexport type MultiCompilerOptions = {\n targetExtension?: string;\n};\n\nexport class MultiCompiler implements Compiler {\n displayName = 'Multi compiler';\n\n shouldCopyNonSupportedFiles =\n typeof this.compilerOptions.shouldCopyNonSupportedFiles === 'boolean'\n ? this.compilerOptions.shouldCopyNonSupportedFiles\n : true;\n distDir = 'dist';\n\n constructor(\n readonly id: string,\n readonly compilers: Compiler[],\n readonly compilerOptions: Partial<CompilerOptions> = {},\n readonly options: MultiCompilerOptions = {}\n ) {}\n\n getDistDir() {\n return this.distDir;\n }\n\n getArtifactDefinition() {\n return [\n {\n generatedBy: this.id,\n name: this.compilerOptions.artifactName || 'dist',\n globPatterns: this.compilerOptions.distGlobPatterns || [\n `${this.distDir}/**`,\n `!${this.distDir}/tsconfig.tsbuildinfo`,\n ],\n },\n ];\n }\n\n private getOptions() {\n const defaultOpts = {\n targetExtension: '.js',\n };\n\n return Object.assign(defaultOpts, this.options);\n }\n\n displayConfig() {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}\\n${compiler.displayConfig}\\n`;\n })\n .join('\\n');\n }\n\n /**\n * the multi-compiler applies all applicable defined compilers on given content.\n */\n async transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput> {\n const outputs: TranspileFileOutput = await this.compilers.reduce<Promise<TranspileFileOutput>>(\n async (files: Promise<TranspileFileOutput>, compiler: Compiler) => {\n if (!compiler.transpileFile) {\n return files;\n }\n const filesToTranspile = await files;\n if (!filesToTranspile) return null;\n const flatMap = (\n await pMapSeries(filesToTranspile, async (file) => {\n if (!compiler.isFileSupported(file?.outputPath)) return [file];\n if (!compiler.transpileFile) return [];\n const params = Object.assign({}, options, {\n filePath: file.outputPath,\n });\n const compiledContent = await compiler.transpileFile(file.outputText, params);\n if (compiledContent) {\n return compiledContent;\n }\n return [];\n })\n ).flat();\n return flatMap;\n },\n Promise.resolve([{ outputText: fileContent, outputPath: options.filePath }] as TranspileFileOutput)\n );\n return outputs;\n }\n\n async transpileComponent(params: TranspileComponentParams): Promise<void> {\n await Promise.all(\n this.compilers.map((compiler) => {\n return compiler.transpileComponent?.(params);\n })\n );\n }\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n const builds = await pMapSeries(this.compilers, async (compiler) => {\n const buildResult = await compiler.build(context);\n return buildResult.componentsResults;\n });\n\n return {\n componentsResults: mergeComponentResults(builds),\n artifacts: this.getArtifactDefinition(),\n };\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.preBuild) return;\n await compiler.preBuild(context);\n })\n );\n }\n\n async postBuild(context: BuildContext, taskResults: TaskResultsList) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.postBuild) return;\n await compiler.postBuild(context, taskResults);\n })\n );\n }\n\n private firstMatchedCompiler(filePath: string): Compiler | undefined {\n return this.compilers.find((compiler) => compiler.isFileSupported(filePath));\n }\n\n getPreviewComponentRootPath(component: Component): string {\n const matchedCompiler = this.compilers.find(\n (compiler) => typeof compiler.getPreviewComponentRootPath !== 'undefined'\n );\n if (!matchedCompiler) {\n return '';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return matchedCompiler.getPreviewComponentRootPath!(component);\n }\n\n /**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */\n getDistPathBySrcPath(srcPath: string): string {\n const matchedCompiler = this.firstMatchedCompiler(srcPath);\n if (!matchedCompiler) {\n return join(this.distDir, srcPath);\n }\n\n return matchedCompiler.getDistPathBySrcPath(srcPath);\n }\n\n /**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */\n isFileSupported(filePath: string): boolean {\n return !!this.firstMatchedCompiler(filePath);\n }\n\n /**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */\n version(): string {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}@${compiler.version()}`;\n })\n .join('\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,SAAAI,kBAAA;EAAA,MAAAJ,IAAA,G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Ae,GAAG,IAAI,CAACJ,oBAAoB,CAACM,OAAO,CAAC;IAC1D,IAAI,CAACF,eAAe,EAAE;MACpB,OAAO,IAAAnC,YAAI,EAAC,IAAI,CAACf,OAAO,EAAEoD,OAAO,CAAC;IACpC;IAEA,OAAOF,eAAe,CAACC,oBAAoB,CAACC,OAAO,CAAC;EACtD;;EAEA;AACF;AACA;EACE3B,eAAeA,CAACG,QAAgB,EAAW;IACzC,OAAO,CAAC,CAAC,IAAI,CAACkB,oBAAoB,CAAClB,QAAQ,CAAC;EAC9C;;EAEA;AACF;AACA;EACEyB,OAAOA,CAAA,EAAW;IAChB,OAAO,IAAI,CAAC1D,SAAS,CAClBiB,GAAG,CAAEC,QAAQ,IAAK;MACjB,OAAQ,GAAEA,QAAQ,CAACC,WAAY,IAAGD,QAAQ,CAACwC,OAAO,CAAC,CAAE,EAAC;IACxD,CAAC,CAAC,CACDtC,IAAI,CAAC,IAAI,CAAC;EACf;AACF;AAACuC,OAAA,CAAA9D,aAAA,GAAAA,aAAA"}
|
1
|
+
{"version":3,"names":["_path","data","require","_pMapSeries","_interopRequireDefault","_pipelinesModules","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MultiCompiler","constructor","id","compilers","compilerOptions","options","shouldCopyNonSupportedFiles","getDistDir","distDir","getArtifactDefinition","generatedBy","name","artifactName","globPatterns","distGlobPatterns","getOptions","defaultOpts","targetExtension","assign","displayConfig","map","compiler","displayName","join","transpileFile","fileContent","outputs","reduce","files","filesToTranspile","flatMap","pMapSeries","file","isFileSupported","outputPath","params","filePath","compiledContent","outputText","flat","Promise","resolve","transpileComponent","all","build","context","builds","buildResult","componentsResults","mergeComponentResults","artifacts","preBuild","postBuild","taskResults","firstMatchedCompiler","find","getPreviewComponentRootPath","component","matchedCompiler","getDistPathBySrcPath","srcPath","version","exports"],"sources":["multi-compiler.compiler.ts"],"sourcesContent":["import { join } from 'path';\nimport pMapSeries from 'p-map-series';\nimport {\n Compiler,\n CompilerOptions,\n TranspileComponentParams,\n TranspileFileOutput,\n TranspileFileParams,\n} from '@teambit/compiler';\nimport { BuiltTaskResult, BuildContext, TaskResultsList } from '@teambit/builder';\nimport { mergeComponentResults } from '@teambit/pipelines.modules.merge-component-results';\nimport { Component } from '@teambit/component';\n\nexport type MultiCompilerOptions = {\n targetExtension?: string;\n};\n\nexport class MultiCompiler implements Compiler {\n displayName = 'Multi compiler';\n\n shouldCopyNonSupportedFiles =\n typeof this.compilerOptions.shouldCopyNonSupportedFiles === 'boolean'\n ? this.compilerOptions.shouldCopyNonSupportedFiles\n : true;\n distDir = 'dist';\n\n constructor(\n readonly id: string,\n readonly compilers: Compiler[],\n readonly compilerOptions: Partial<CompilerOptions> = {},\n readonly options: MultiCompilerOptions = {}\n ) {}\n\n getDistDir() {\n return this.distDir;\n }\n\n getArtifactDefinition() {\n return [\n {\n generatedBy: this.id,\n name: this.compilerOptions.artifactName || 'dist',\n globPatterns: this.compilerOptions.distGlobPatterns || [\n `${this.distDir}/**`,\n `!${this.distDir}/tsconfig.tsbuildinfo`,\n ],\n },\n ];\n }\n\n private getOptions() {\n const defaultOpts = {\n targetExtension: '.js',\n };\n\n return Object.assign(defaultOpts, this.options);\n }\n\n displayConfig() {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}\\n${compiler.displayConfig}\\n`;\n })\n .join('\\n');\n }\n\n /**\n * the multi-compiler applies all applicable defined compilers on given content.\n */\n async transpileFile(fileContent: string, options: TranspileFileParams): Promise<TranspileFileOutput> {\n const outputs: TranspileFileOutput = await this.compilers.reduce<Promise<TranspileFileOutput>>(\n async (files: Promise<TranspileFileOutput>, compiler: Compiler) => {\n if (!compiler.transpileFile) {\n return files;\n }\n const filesToTranspile = await files;\n if (!filesToTranspile) return null;\n const flatMap = (\n await pMapSeries(filesToTranspile, async (file) => {\n if (!compiler.isFileSupported(file?.outputPath)) return [file];\n if (!compiler.transpileFile) return [];\n const params = Object.assign({}, options, {\n filePath: file.outputPath,\n });\n const compiledContent = await compiler.transpileFile(file.outputText, params);\n if (compiledContent) {\n return compiledContent;\n }\n return [];\n })\n ).flat();\n return flatMap;\n },\n Promise.resolve([{ outputText: fileContent, outputPath: options.filePath }] as TranspileFileOutput)\n );\n return outputs;\n }\n\n async transpileComponent(params: TranspileComponentParams): Promise<void> {\n await Promise.all(\n this.compilers.map((compiler) => {\n return compiler.transpileComponent?.(params);\n })\n );\n }\n\n async build(context: BuildContext): Promise<BuiltTaskResult> {\n const builds = await pMapSeries(this.compilers, async (compiler) => {\n const buildResult = await compiler.build(context);\n return buildResult.componentsResults;\n });\n\n return {\n componentsResults: mergeComponentResults(builds),\n artifacts: this.getArtifactDefinition(),\n };\n }\n\n async preBuild(context: BuildContext) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.preBuild) return;\n await compiler.preBuild(context);\n })\n );\n }\n\n async postBuild(context: BuildContext, taskResults: TaskResultsList) {\n await Promise.all(\n this.compilers.map(async (compiler) => {\n if (!compiler.postBuild) return;\n await compiler.postBuild(context, taskResults);\n })\n );\n }\n\n private firstMatchedCompiler(filePath: string): Compiler | undefined {\n return this.compilers.find((compiler) => compiler.isFileSupported(filePath));\n }\n\n getPreviewComponentRootPath(component: Component): string {\n const matchedCompiler = this.compilers.find(\n (compiler) => typeof compiler.getPreviewComponentRootPath !== 'undefined'\n );\n if (!matchedCompiler) {\n return '';\n }\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return matchedCompiler.getPreviewComponentRootPath!(component);\n }\n\n /**\n * given a source file, return its parallel in the dists. e.g. \"index.ts\" => \"dist/index.js\"\n * both, the return path and the given path are relative paths.\n */\n getDistPathBySrcPath(srcPath: string): string {\n const matchedCompiler = this.firstMatchedCompiler(srcPath);\n if (!matchedCompiler) {\n return join(this.distDir, srcPath);\n }\n\n return matchedCompiler.getDistPathBySrcPath(srcPath);\n }\n\n /**\n * only supported files matching get compiled. others, are copied to the dist dir.\n */\n isFileSupported(filePath: string): boolean {\n return !!this.firstMatchedCompiler(filePath);\n }\n\n /**\n * returns the version of the current compiler instance (e.g. '4.0.1').\n */\n version(): string {\n return this.compilers\n .map((compiler) => {\n return `${compiler.displayName}@${compiler.version()}`;\n })\n .join('\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,YAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,WAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AASA,SAAAI,kBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,iBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA2F,SAAAG,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,CAAA,QAAAC,CAAA,GAAAC,YAAA,CAAAF,CAAA,uCAAAC,CAAA,GAAAA,CAAA,GAAAE,MAAA,CAAAF,CAAA;AAAA,SAAAC,aAAAF,CAAA,EAAAI,CAAA,2BAAAJ,CAAA,KAAAA,CAAA,SAAAA,CAAA,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opRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["multi-compiler.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/multi-complier.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA4D,CAAE,CAC1F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA"}
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["multi-compiler.composition.tsx"],"sourcesContent":["import React from 'react';\n\nexport const Logo = () => (\n <div style={{ height: '100%', display: 'flex', justifyContent: 'center' }}>\n <img style={{ width: 70 }} src=\"https://static.bit.dev/extensions-icons/multi-complier.svg\" />\n </div>\n);\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAC,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEnB,MAAMG,IAAI,GAAGA,CAAA,kBAClBP,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEC,MAAM,EAAE,MAAM;IAAEC,OAAO,EAAE,MAAM;IAAEC,cAAc,EAAE;EAAS;AAAE,gBACxEZ,MAAA,GAAAM,OAAA,CAAAE,aAAA;EAAKC,KAAK,EAAE;IAAEI,KAAK,EAAE;EAAG,CAAE;EAACC,GAAG,EAAC;AAA4D,CAAE,CAC1F,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_cli","data","require","_multiCompiler","_multiCompiler2","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MultiCompilerMain","createCompiler","compilers","options","MultiCompiler","MultiCompilerAspect","id","provider","exports","MainRuntime","addRuntime"],"sources":["multi-compiler.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { Compiler, CompilerOptions } from '@teambit/compiler';\nimport { MultiCompilerAspect } from './multi-compiler.aspect';\nimport { MultiCompiler } from './multi-compiler.compiler';\n\nexport class MultiCompilerMain {\n /**\n * create a multi-compiler `Compiler` instance.\n * @param compilers list of compilers to include.\n */\n createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {\n return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});\n }\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new MultiCompilerMain();\n }\n}\n\nMultiCompilerAspect.addRuntime(MultiCompilerMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA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,EAAEJ,SAAS,EAAEC,OAAO,EAAE,CAAC,CAAC,CAAC;EAC1E;EAIA,aAAaI,QAAQA,CAAA,EAAG;IACtB,OAAO,IAAIP,iBAAiB,CAAC,CAAC;EAChC;AACF;AAACQ,OAAA,CAAAR,iBAAA,GAAAA,iBAAA;AAAArB,eAAA,CAdYqB,iBAAiB,aASXS,kBAAW;AAO9BJ,oCAAmB,CAACK,UAAU,CAACV,iBAAiB,CAAC"}
|
1
|
+
{"version":3,"names":["_cli","data","require","_multiCompiler","_multiCompiler2","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","t","i","_toPrimitive","String","r","e","Symbol","toPrimitive","call","TypeError","Number","MultiCompilerMain","createCompiler","compilers","options","MultiCompiler","MultiCompilerAspect","id","provider","exports","MainRuntime","addRuntime"],"sources":["multi-compiler.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { Compiler, CompilerOptions } from '@teambit/compiler';\nimport { MultiCompilerAspect } from './multi-compiler.aspect';\nimport { MultiCompiler } from './multi-compiler.compiler';\n\nexport class MultiCompilerMain {\n /**\n * create a multi-compiler `Compiler` instance.\n * @param compilers list of compilers to include.\n */\n createCompiler(compilers: Compiler[], options: Partial<CompilerOptions> = {}) {\n return new MultiCompiler(MultiCompilerAspect.id, compilers, options, {});\n }\n\n static runtime = MainRuntime;\n\n static async provider() {\n return new MultiCompilerMain();\n }\n}\n\nMultiCompilerAspect.addRuntime(MultiCompilerMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,eAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,cAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,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CAAmB,CAACK,UAAU,CAACV,iBAAiB,CAAC","ignoreList":[]}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.compilation_multi-compiler@1.0.189/dist/multi-compiler.composition.js';
|
2
|
+
import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.compilation_multi-compiler@1.0.189/dist/multi-compiler.docs.mdx';
|
3
|
+
|
4
|
+
export const compositions = [compositions_0];
|
5
|
+
export const overview = [overview_0];
|
6
|
+
|
7
|
+
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|
package/package.json
CHANGED
@@ -1,26 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/multi-compiler",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.189",
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/multi-compiler",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.compilation",
|
8
8
|
"name": "multi-compiler",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.189"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"p-map-series": "2.1.0",
|
13
13
|
"@teambit/harmony": "0.4.6",
|
14
|
-
"@teambit/builder": "1.0.
|
15
|
-
"@teambit/compiler": "1.0.
|
16
|
-
"@teambit/component": "1.0.
|
14
|
+
"@teambit/builder": "1.0.189",
|
15
|
+
"@teambit/compiler": "1.0.189",
|
16
|
+
"@teambit/component": "1.0.189",
|
17
17
|
"@teambit/pipelines.modules.merge-component-results": "0.0.498",
|
18
|
-
"@teambit/cli": "0.0.
|
18
|
+
"@teambit/cli": "0.0.856"
|
19
19
|
},
|
20
20
|
"devDependencies": {
|
21
21
|
"@types/mocha": "9.1.0",
|
22
22
|
"chai": "4.3.0",
|
23
|
-
"@teambit/harmony.envs.core-aspect-env": "0.0.
|
23
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.27",
|
24
24
|
"@teambit/compilation.aspect-docs.multi-compiler": "0.0.169"
|
25
25
|
},
|
26
26
|
"peerDependencies": {
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.187/dist/multi-compiler.composition.js';
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_multi-compiler@1.0.187/dist/multi-compiler.docs.mdx';
|
3
|
-
|
4
|
-
export const compositions = [compositions_0];
|
5
|
-
export const overview = [overview_0];
|
6
|
-
|
7
|
-
export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};
|