@teambit/babel 1.0.499 → 1.0.500
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
2
|
<testsuites tests="0" failures="0" errors="0" skipped="0">
|
|
3
|
-
<testsuite name="teambit.compilation/babel@1.0.
|
|
3
|
+
<testsuite name="teambit.compilation/babel@1.0.500" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={5676:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(1594));var r=n(5016),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}function p(e,t){if(null==e)return{};var n,o,r=s(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}a.__bit_component=o,l.__bit_component=o,p.__bit_component=o,s.__bit_component=o;var c={},m="wrapper";function d(e){var t=e.components,n=p(e,i);return(0,r.mdx)(m,l({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"This compiler utilizes the programmatic API of Babel to transpile files. See the compiler-options.ts for more data how to pass Babel options to the compiler."),(0,r.mdx)("p",null,"Note that to isolate the components from different Babel config files on the machine, the following two props are set to false (if they weren't passed in the options): ",(0,r.mdx)("inlineCode",{parentName:"p"},"configFile")," and ",(0,r.mdx)("inlineCode",{parentName:"p"},"babelrc"),"."),(0,r.mdx)("h2",null,"FAQ"),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"Q"),": I'm getting an error about missing plugins."),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"A"),": make sure that workspace.jsonc has the plugins and that you ran ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit install"),".\nExample of the workspace.jsonc settings:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'"my-babel-env": {\n "teambit.bit/aspect": {},\n "teambit.bit/dependency-resolver": {\n "policy": {\n "dependencies": {\n "@babel/core": "7.11.6",\n "@babel/preset-react": "7.22.15",\n "@babel/preset-env": "7.22.15",\n "@babel/preset-typescript": "7.22.15",\n "@babel/plugin-transform-class-properties": "7.22.5"\n }\n }\n }\n },\n')),(0,r.mdx)("ol",{start:2},(0,r.mdx)("li",{parentName:"ol"},"You're not using the plugin.\nThe reason for the error is that Babel searches for config files in different directories. To disable this, add the following to the config you pass to the compiler:")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'{\n ...\n "babelrc": false,\n "configFile": false,\n}\n')),(0,r.mdx)("p",null,"this takes care of both .babelrc and babel.config.json."))}d.__bit_component=o,d.isMDXComponent=!0},1865:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(5676));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={5676:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(1594));var r=n(5016),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},l.apply(null,arguments)}function p(e,t){if(null==e)return{};var n,o,r=s(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}a.__bit_component=o,l.__bit_component=o,p.__bit_component=o,s.__bit_component=o;var c={},m="wrapper";function d(e){var t=e.components,n=p(e,i);return(0,r.mdx)(m,l({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"This compiler utilizes the programmatic API of Babel to transpile files. See the compiler-options.ts for more data how to pass Babel options to the compiler."),(0,r.mdx)("p",null,"Note that to isolate the components from different Babel config files on the machine, the following two props are set to false (if they weren't passed in the options): ",(0,r.mdx)("inlineCode",{parentName:"p"},"configFile")," and ",(0,r.mdx)("inlineCode",{parentName:"p"},"babelrc"),"."),(0,r.mdx)("h2",null,"FAQ"),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"Q"),": I'm getting an error about missing plugins."),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"A"),": make sure that workspace.jsonc has the plugins and that you ran ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit install"),".\nExample of the workspace.jsonc settings:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'"my-babel-env": {\n "teambit.bit/aspect": {},\n "teambit.bit/dependency-resolver": {\n "policy": {\n "dependencies": {\n "@babel/core": "7.11.6",\n "@babel/preset-react": "7.22.15",\n "@babel/preset-env": "7.22.15",\n "@babel/preset-typescript": "7.22.15",\n "@babel/plugin-transform-class-properties": "7.22.5"\n }\n }\n }\n },\n')),(0,r.mdx)("ol",{start:2},(0,r.mdx)("li",{parentName:"ol"},"You're not using the plugin.\nThe reason for the error is that Babel searches for config files in different directories. To disable this, add the following to the config you pass to the compiler:")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'{\n ...\n "babelrc": false,\n "configFile": false,\n}\n')),(0,r.mdx)("p",null,"this takes care of both .babelrc and babel.config.json."))}d.__bit_component=o,d.isMDXComponent=!0},1865:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(5676));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.170",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},8e3:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.500",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(n(1594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=o,i.__bit_component=o;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/babel.svg"}));a.__bit_component=o,t.Logo=a},5016:e=>{e.exports=MdxJsReact},1594:e=>{e.exports=React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{compositions:()=>b,compositions_metadata:()=>y,overview:()=>f});var r={};n.r(r),n.d(r,{default:()=>u});var i=n(8e3),a=(n(1594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(1865),s=["components"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c.apply(null,arguments)}var m={},d="wrapper";function u(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,s);return(0,a.mdx)(d,c({},m,n,{components:t,mdxType:"MDXLayout"}),(0,a.mdx)(l.MDXScopeProvider,{components:{Babel:p.n},mdxType:"MDXScopeProvider"},(0,a.mdx)(p.n,{mdxType:"Babel"})))}u.isMDXComponent=!0;const b=[i],f=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
|
package/artifacts/schema.json
CHANGED
|
@@ -81,7 +81,11 @@
|
|
|
81
81
|
"line": 11,
|
|
82
82
|
"character": 21
|
|
83
83
|
},
|
|
84
|
-
"name": "Logger"
|
|
84
|
+
"name": "Logger",
|
|
85
|
+
"componentId": {
|
|
86
|
+
"scope": "teambit.harmony",
|
|
87
|
+
"name": "logger"
|
|
88
|
+
}
|
|
85
89
|
},
|
|
86
90
|
"isOptional": false,
|
|
87
91
|
"isSpread": false
|
|
@@ -101,7 +105,11 @@
|
|
|
101
105
|
"line": 12,
|
|
102
106
|
"character": 23
|
|
103
107
|
},
|
|
104
|
-
"name": "CompilerMain"
|
|
108
|
+
"name": "CompilerMain",
|
|
109
|
+
"componentId": {
|
|
110
|
+
"scope": "teambit.compilation",
|
|
111
|
+
"name": "compiler"
|
|
112
|
+
}
|
|
105
113
|
},
|
|
106
114
|
"isOptional": false,
|
|
107
115
|
"isSpread": false
|
|
@@ -143,7 +151,8 @@
|
|
|
143
151
|
"line": 15,
|
|
144
152
|
"character": 27
|
|
145
153
|
},
|
|
146
|
-
"name": "BabelCompilerOptions"
|
|
154
|
+
"name": "BabelCompilerOptions",
|
|
155
|
+
"internalFilePath": "compiler-options.ts"
|
|
147
156
|
},
|
|
148
157
|
"isOptional": false,
|
|
149
158
|
"isSpread": false
|
|
@@ -282,7 +291,11 @@
|
|
|
282
291
|
"line": 28,
|
|
283
292
|
"character": 49
|
|
284
293
|
},
|
|
285
|
-
"name": "LoggerMain"
|
|
294
|
+
"name": "LoggerMain",
|
|
295
|
+
"componentId": {
|
|
296
|
+
"scope": "teambit.harmony",
|
|
297
|
+
"name": "logger"
|
|
298
|
+
}
|
|
286
299
|
},
|
|
287
300
|
{
|
|
288
301
|
"__schema": "TypeRefSchema",
|
|
@@ -291,7 +304,11 @@
|
|
|
291
304
|
"line": 28,
|
|
292
305
|
"character": 61
|
|
293
306
|
},
|
|
294
|
-
"name": "CompilerMain"
|
|
307
|
+
"name": "CompilerMain",
|
|
308
|
+
"componentId": {
|
|
309
|
+
"scope": "teambit.compilation",
|
|
310
|
+
"name": "compiler"
|
|
311
|
+
}
|
|
295
312
|
}
|
|
296
313
|
]
|
|
297
314
|
},
|
|
@@ -401,7 +418,11 @@
|
|
|
401
418
|
"line": 11,
|
|
402
419
|
"character": 21
|
|
403
420
|
},
|
|
404
|
-
"name": "Logger"
|
|
421
|
+
"name": "Logger",
|
|
422
|
+
"componentId": {
|
|
423
|
+
"scope": "teambit.harmony",
|
|
424
|
+
"name": "logger"
|
|
425
|
+
}
|
|
405
426
|
},
|
|
406
427
|
"isOptional": false,
|
|
407
428
|
"isSpread": false
|
|
@@ -421,7 +442,11 @@
|
|
|
421
442
|
"line": 12,
|
|
422
443
|
"character": 23
|
|
423
444
|
},
|
|
424
|
-
"name": "CompilerMain"
|
|
445
|
+
"name": "CompilerMain",
|
|
446
|
+
"componentId": {
|
|
447
|
+
"scope": "teambit.compilation",
|
|
448
|
+
"name": "compiler"
|
|
449
|
+
}
|
|
425
450
|
},
|
|
426
451
|
"isOptional": false,
|
|
427
452
|
"isSpread": false
|
|
@@ -463,7 +488,8 @@
|
|
|
463
488
|
"line": 15,
|
|
464
489
|
"character": 27
|
|
465
490
|
},
|
|
466
|
-
"name": "BabelCompilerOptions"
|
|
491
|
+
"name": "BabelCompilerOptions",
|
|
492
|
+
"internalFilePath": "compiler-options.ts"
|
|
467
493
|
},
|
|
468
494
|
"isOptional": false,
|
|
469
495
|
"isSpread": false
|
|
@@ -602,7 +628,11 @@
|
|
|
602
628
|
"line": 28,
|
|
603
629
|
"character": 49
|
|
604
630
|
},
|
|
605
|
-
"name": "LoggerMain"
|
|
631
|
+
"name": "LoggerMain",
|
|
632
|
+
"componentId": {
|
|
633
|
+
"scope": "teambit.harmony",
|
|
634
|
+
"name": "logger"
|
|
635
|
+
}
|
|
606
636
|
},
|
|
607
637
|
{
|
|
608
638
|
"__schema": "TypeRefSchema",
|
|
@@ -611,7 +641,11 @@
|
|
|
611
641
|
"line": 28,
|
|
612
642
|
"character": 61
|
|
613
643
|
},
|
|
614
|
-
"name": "CompilerMain"
|
|
644
|
+
"name": "CompilerMain",
|
|
645
|
+
"componentId": {
|
|
646
|
+
"scope": "teambit.compilation",
|
|
647
|
+
"name": "compiler"
|
|
648
|
+
}
|
|
615
649
|
}
|
|
616
650
|
]
|
|
617
651
|
},
|
|
@@ -692,7 +726,7 @@
|
|
|
692
726
|
"componentId": {
|
|
693
727
|
"scope": "teambit.compilation",
|
|
694
728
|
"name": "babel",
|
|
695
|
-
"version": "1.0.
|
|
729
|
+
"version": "1.0.500"
|
|
696
730
|
},
|
|
697
731
|
"taggedModuleExports": []
|
|
698
732
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.500/dist/babel.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.500/dist/babel.docs.mdx';
|
|
3
3
|
|
|
4
4
|
export const compositions = [compositions_0];
|
|
5
5
|
export const overview = [overview_0];
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/babel",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.500",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/compilation/babel",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.compilation",
|
|
8
8
|
"name": "babel",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.500"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/core": "7.19.6",
|
|
13
13
|
"@teambit/harmony": "0.4.6",
|
|
14
14
|
"@teambit/compilation.babel-compiler": "1.1.13",
|
|
15
|
-
"@teambit/cli": "0.0.
|
|
16
|
-
"@teambit/compiler": "1.0.
|
|
17
|
-
"@teambit/logger": "0.0.
|
|
15
|
+
"@teambit/cli": "0.0.1077",
|
|
16
|
+
"@teambit/compiler": "1.0.500",
|
|
17
|
+
"@teambit/logger": "0.0.1170"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/mocha": "9.1.0",
|