@teambit/babel 1.0.496 → 1.0.497
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.497" tests="0" failures="0" errors="0" skipped="0"/>
|
|
4
4
|
</testsuites>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={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}},4517:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.497",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(4517),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,11 +81,7 @@
|
|
|
81
81
|
"line": 11,
|
|
82
82
|
"character": 21
|
|
83
83
|
},
|
|
84
|
-
"name": "Logger"
|
|
85
|
-
"componentId": {
|
|
86
|
-
"scope": "teambit.harmony",
|
|
87
|
-
"name": "logger"
|
|
88
|
-
}
|
|
84
|
+
"name": "Logger"
|
|
89
85
|
},
|
|
90
86
|
"isOptional": false,
|
|
91
87
|
"isSpread": false
|
|
@@ -105,11 +101,7 @@
|
|
|
105
101
|
"line": 12,
|
|
106
102
|
"character": 23
|
|
107
103
|
},
|
|
108
|
-
"name": "CompilerMain"
|
|
109
|
-
"componentId": {
|
|
110
|
-
"scope": "teambit.compilation",
|
|
111
|
-
"name": "compiler"
|
|
112
|
-
}
|
|
104
|
+
"name": "CompilerMain"
|
|
113
105
|
},
|
|
114
106
|
"isOptional": false,
|
|
115
107
|
"isSpread": false
|
|
@@ -151,8 +143,7 @@
|
|
|
151
143
|
"line": 15,
|
|
152
144
|
"character": 27
|
|
153
145
|
},
|
|
154
|
-
"name": "BabelCompilerOptions"
|
|
155
|
-
"internalFilePath": "compiler-options.ts"
|
|
146
|
+
"name": "BabelCompilerOptions"
|
|
156
147
|
},
|
|
157
148
|
"isOptional": false,
|
|
158
149
|
"isSpread": false
|
|
@@ -291,11 +282,7 @@
|
|
|
291
282
|
"line": 28,
|
|
292
283
|
"character": 49
|
|
293
284
|
},
|
|
294
|
-
"name": "LoggerMain"
|
|
295
|
-
"componentId": {
|
|
296
|
-
"scope": "teambit.harmony",
|
|
297
|
-
"name": "logger"
|
|
298
|
-
}
|
|
285
|
+
"name": "LoggerMain"
|
|
299
286
|
},
|
|
300
287
|
{
|
|
301
288
|
"__schema": "TypeRefSchema",
|
|
@@ -304,11 +291,7 @@
|
|
|
304
291
|
"line": 28,
|
|
305
292
|
"character": 61
|
|
306
293
|
},
|
|
307
|
-
"name": "CompilerMain"
|
|
308
|
-
"componentId": {
|
|
309
|
-
"scope": "teambit.compilation",
|
|
310
|
-
"name": "compiler"
|
|
311
|
-
}
|
|
294
|
+
"name": "CompilerMain"
|
|
312
295
|
}
|
|
313
296
|
]
|
|
314
297
|
},
|
|
@@ -418,11 +401,7 @@
|
|
|
418
401
|
"line": 11,
|
|
419
402
|
"character": 21
|
|
420
403
|
},
|
|
421
|
-
"name": "Logger"
|
|
422
|
-
"componentId": {
|
|
423
|
-
"scope": "teambit.harmony",
|
|
424
|
-
"name": "logger"
|
|
425
|
-
}
|
|
404
|
+
"name": "Logger"
|
|
426
405
|
},
|
|
427
406
|
"isOptional": false,
|
|
428
407
|
"isSpread": false
|
|
@@ -442,11 +421,7 @@
|
|
|
442
421
|
"line": 12,
|
|
443
422
|
"character": 23
|
|
444
423
|
},
|
|
445
|
-
"name": "CompilerMain"
|
|
446
|
-
"componentId": {
|
|
447
|
-
"scope": "teambit.compilation",
|
|
448
|
-
"name": "compiler"
|
|
449
|
-
}
|
|
424
|
+
"name": "CompilerMain"
|
|
450
425
|
},
|
|
451
426
|
"isOptional": false,
|
|
452
427
|
"isSpread": false
|
|
@@ -488,8 +463,7 @@
|
|
|
488
463
|
"line": 15,
|
|
489
464
|
"character": 27
|
|
490
465
|
},
|
|
491
|
-
"name": "BabelCompilerOptions"
|
|
492
|
-
"internalFilePath": "compiler-options.ts"
|
|
466
|
+
"name": "BabelCompilerOptions"
|
|
493
467
|
},
|
|
494
468
|
"isOptional": false,
|
|
495
469
|
"isSpread": false
|
|
@@ -628,11 +602,7 @@
|
|
|
628
602
|
"line": 28,
|
|
629
603
|
"character": 49
|
|
630
604
|
},
|
|
631
|
-
"name": "LoggerMain"
|
|
632
|
-
"componentId": {
|
|
633
|
-
"scope": "teambit.harmony",
|
|
634
|
-
"name": "logger"
|
|
635
|
-
}
|
|
605
|
+
"name": "LoggerMain"
|
|
636
606
|
},
|
|
637
607
|
{
|
|
638
608
|
"__schema": "TypeRefSchema",
|
|
@@ -641,11 +611,7 @@
|
|
|
641
611
|
"line": 28,
|
|
642
612
|
"character": 61
|
|
643
613
|
},
|
|
644
|
-
"name": "CompilerMain"
|
|
645
|
-
"componentId": {
|
|
646
|
-
"scope": "teambit.compilation",
|
|
647
|
-
"name": "compiler"
|
|
648
|
-
}
|
|
614
|
+
"name": "CompilerMain"
|
|
649
615
|
}
|
|
650
616
|
]
|
|
651
617
|
},
|
|
@@ -726,7 +692,7 @@
|
|
|
726
692
|
"componentId": {
|
|
727
693
|
"scope": "teambit.compilation",
|
|
728
694
|
"name": "babel",
|
|
729
|
-
"version": "1.0.
|
|
695
|
+
"version": "1.0.497"
|
|
730
696
|
},
|
|
731
697
|
"taggedModuleExports": []
|
|
732
698
|
}
|
|
@@ -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.497/dist/babel.composition.js';
|
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.497/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.497",
|
|
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.497"
|
|
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.1074",
|
|
16
|
+
"@teambit/compiler": "1.0.497",
|
|
17
|
+
"@teambit/logger": "0.0.1167"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/mocha": "9.1.0",
|