@teambit/babel 1.0.330 → 1.0.331

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.330" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/babel@1.0.331" 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={4436:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(41594));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.indexOf(n)>=0||{}.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.indexOf(o)>=0)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},75937:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(4436));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},83077:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.330",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(n(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=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},41594: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:()=>u,compositions_metadata:()=>y,overview:()=>f});var r={};n.r(r),n.d(r,{default:()=>b});var i=n(83077),a=(n(41594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(75937),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 b(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.indexOf(o)>=0)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.indexOf(n)>=0||{}.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"})))}b.isMDXComponent=!0;const u=[i],f=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
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={40026:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=d,a(n(41594));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.indexOf(n)>=0||{}.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.indexOf(o)>=0)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},57535:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(40026));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.169",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},62614:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.331",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(n(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=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},41594: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:()=>u,compositions_metadata:()=>y,overview:()=>f});var r={};n.r(r),n.d(r,{default:()=>b});var i=n(62614),a=(n(41594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(57535),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 b(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.indexOf(o)>=0)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.indexOf(n)>=0||{}.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"})))}b.isMDXComponent=!0;const u=[i],f=[r],y={compositions:[{displayName:"Logo",identifier:"Logo"}]};return o})()));
@@ -79,11 +79,7 @@
79
79
  "line": 10,
80
80
  "character": 31
81
81
  },
82
- "name": "Logger",
83
- "componentId": {
84
- "scope": "teambit.harmony",
85
- "name": "logger"
86
- }
82
+ "name": "Logger"
87
83
  },
88
84
  "isOptional": false,
89
85
  "isSpread": false
@@ -103,11 +99,7 @@
103
99
  "line": 10,
104
100
  "character": 57
105
101
  },
106
- "name": "CompilerMain",
107
- "componentId": {
108
- "scope": "teambit.compilation",
109
- "name": "compiler"
110
- }
102
+ "name": "CompilerMain"
111
103
  },
112
104
  "isOptional": false,
113
105
  "isSpread": false
@@ -149,8 +141,7 @@
149
141
  "line": 12,
150
142
  "character": 27
151
143
  },
152
- "name": "BabelCompilerOptions",
153
- "internalFilePath": "compiler-options.ts"
144
+ "name": "BabelCompilerOptions"
154
145
  },
155
146
  "isOptional": false,
156
147
  "isSpread": false
@@ -289,11 +280,7 @@
289
280
  "line": 25,
290
281
  "character": 49
291
282
  },
292
- "name": "LoggerMain",
293
- "componentId": {
294
- "scope": "teambit.harmony",
295
- "name": "logger"
296
- }
283
+ "name": "LoggerMain"
297
284
  },
298
285
  {
299
286
  "__schema": "TypeRefSchema",
@@ -302,11 +289,7 @@
302
289
  "line": 25,
303
290
  "character": 61
304
291
  },
305
- "name": "CompilerMain",
306
- "componentId": {
307
- "scope": "teambit.compilation",
308
- "name": "compiler"
309
- }
292
+ "name": "CompilerMain"
310
293
  }
311
294
  ]
312
295
  },
@@ -415,11 +398,7 @@
415
398
  "line": 10,
416
399
  "character": 31
417
400
  },
418
- "name": "Logger",
419
- "componentId": {
420
- "scope": "teambit.harmony",
421
- "name": "logger"
422
- }
401
+ "name": "Logger"
423
402
  },
424
403
  "isOptional": false,
425
404
  "isSpread": false
@@ -439,11 +418,7 @@
439
418
  "line": 10,
440
419
  "character": 57
441
420
  },
442
- "name": "CompilerMain",
443
- "componentId": {
444
- "scope": "teambit.compilation",
445
- "name": "compiler"
446
- }
421
+ "name": "CompilerMain"
447
422
  },
448
423
  "isOptional": false,
449
424
  "isSpread": false
@@ -485,8 +460,7 @@
485
460
  "line": 12,
486
461
  "character": 27
487
462
  },
488
- "name": "BabelCompilerOptions",
489
- "internalFilePath": "compiler-options.ts"
463
+ "name": "BabelCompilerOptions"
490
464
  },
491
465
  "isOptional": false,
492
466
  "isSpread": false
@@ -625,11 +599,7 @@
625
599
  "line": 25,
626
600
  "character": 49
627
601
  },
628
- "name": "LoggerMain",
629
- "componentId": {
630
- "scope": "teambit.harmony",
631
- "name": "logger"
632
- }
602
+ "name": "LoggerMain"
633
603
  },
634
604
  {
635
605
  "__schema": "TypeRefSchema",
@@ -638,11 +608,7 @@
638
608
  "line": 25,
639
609
  "character": 61
640
610
  },
641
- "name": "CompilerMain",
642
- "componentId": {
643
- "scope": "teambit.compilation",
644
- "name": "compiler"
645
- }
611
+ "name": "CompilerMain"
646
612
  }
647
613
  ]
648
614
  },
@@ -723,7 +689,7 @@
723
689
  "componentId": {
724
690
  "scope": "teambit.compilation",
725
691
  "name": "babel",
726
- "version": "1.0.330"
692
+ "version": "1.0.331"
727
693
  },
728
694
  "taggedModuleExports": []
729
695
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.330/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.330/dist/babel.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.331/dist/babel.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.331/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,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/babel",
3
- "version": "1.0.330",
3
+ "version": "1.0.331",
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.330"
9
+ "version": "1.0.331"
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.11",
15
- "@teambit/cli": "0.0.907",
16
- "@teambit/compiler": "1.0.330",
17
- "@teambit/logger": "0.0.1000"
15
+ "@teambit/cli": "0.0.908",
16
+ "@teambit/compiler": "1.0.331",
17
+ "@teambit/logger": "0.0.1001"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/mocha": "9.1.0",
21
21
  "chai": "4.3.0",
22
- "@teambit/harmony.envs.core-aspect-env": "0.0.39",
22
+ "@teambit/harmony.envs.core-aspect-env": "0.0.42",
23
23
  "@teambit/compilation.aspect-docs.babel": "0.0.169"
24
24
  },
25
25
  "peerDependencies": {