@teambit/babel 1.0.257 → 1.0.259

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.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/babel@1.0.259" 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={15169:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=b,a(o(41594));var r=o(5016),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function l(e,t){if(null==e)return{};var o,n,r=s(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 s(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}a.__bit_component=n,p.__bit_component=n,l.__bit_component=n,s.__bit_component=n;var c={},m="wrapper";function b(e){var t=e.components,o=l(e,i);return(0,r.mdx)(m,p({},c,o,{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."))}b.__bit_component=n,b.isMDXComponent=!0},44748:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(15169));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},13469:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.257",homepage:"https://bit.cloud/teambit/compilation/babel",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 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=n,t.Logo=a},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:()=>b,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>m});var t=o(13469),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(44748),p=["components"];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)}var s={},c="wrapper";function m(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,p);return(0,r.mdx)(c,l({},s,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{Babel:a.n},mdxType:"MDXScopeProvider"},(0,r.mdx)(a.n,{mdxType:"Babel"})))}m.isMDXComponent=!0;const b=[t],d=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
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={15169:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=b,a(o(41594));var r=o(5016),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function p(){return p=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},p.apply(this,arguments)}function l(e,t){if(null==e)return{};var o,n,r=s(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 s(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}a.__bit_component=n,p.__bit_component=n,l.__bit_component=n,s.__bit_component=n;var c={},m="wrapper";function b(e){var t=e.components,o=l(e,i);return(0,r.mdx)(m,p({},c,o,{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."))}b.__bit_component=n,b.isMDXComponent=!0},44748:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(15169));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},41879:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.259",homepage:"https://bit.cloud/teambit/compilation/babel",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 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=n,t.Logo=a},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:()=>b,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>m});var t=o(41879),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(44748),p=["components"];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)}var s={},c="wrapper";function m(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={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;o[n]=e[n]}return o}(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,p);return(0,r.mdx)(c,l({},s,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{Babel:a.n},mdxType:"MDXScopeProvider"},(0,r.mdx)(a.n,{mdxType:"Babel"})))}m.isMDXComponent=!0;const b=[t],d=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
@@ -14,332 +14,359 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "TypeRefSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
19
  "filePath": "index.ts",
20
20
  "line": 1,
21
21
  "character": 10
22
22
  },
23
23
  "name": "BabelCompiler",
24
- "componentId": {
25
- "scope": "teambit.compilation",
26
- "name": "babel-compiler",
27
- "version": "1.1.8"
24
+ "exportNode": {
25
+ "__schema": "TypeRefSchema",
26
+ "location": {
27
+ "filePath": "index.ts",
28
+ "line": 1,
29
+ "character": 10
30
+ },
31
+ "name": "BabelCompiler",
32
+ "componentId": {
33
+ "scope": "teambit.compilation",
34
+ "name": "babel-compiler",
35
+ "version": "1.1.8"
36
+ }
28
37
  }
29
38
  },
30
39
  {
31
- "__schema": "ClassSchema",
40
+ "__schema": "ExportSchema",
32
41
  "location": {
33
- "filePath": "babel.main.runtime.ts",
34
- "line": 9,
35
- "character": 1
42
+ "filePath": "index.ts",
43
+ "line": 2,
44
+ "character": 15
36
45
  },
37
- "signature": "class BabelMain",
38
46
  "name": "BabelMain",
39
- "members": [
40
- {
41
- "__schema": "ConstructorSchema",
42
- "location": {
43
- "filePath": "babel.main.runtime.ts",
44
- "line": 10,
45
- "character": 3
46
- },
47
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
48
- "name": "constructor",
49
- "params": [
50
- {
51
- "__schema": "ParameterSchema",
52
- "location": {
53
- "filePath": "babel.main.runtime.ts",
54
- "line": 10,
55
- "character": 15
56
- },
57
- "name": "logger",
58
- "type": {
59
- "__schema": "TypeRefSchema",
47
+ "exportNode": {
48
+ "__schema": "ClassSchema",
49
+ "location": {
50
+ "filePath": "babel.main.runtime.ts",
51
+ "line": 9,
52
+ "character": 1
53
+ },
54
+ "signature": "class BabelMain",
55
+ "name": "BabelMain",
56
+ "members": [
57
+ {
58
+ "__schema": "ConstructorSchema",
59
+ "location": {
60
+ "filePath": "babel.main.runtime.ts",
61
+ "line": 10,
62
+ "character": 3
63
+ },
64
+ "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
65
+ "name": "constructor",
66
+ "params": [
67
+ {
68
+ "__schema": "ParameterSchema",
60
69
  "location": {
61
70
  "filePath": "babel.main.runtime.ts",
62
71
  "line": 10,
63
- "character": 31
72
+ "character": 15
64
73
  },
65
- "name": "Logger",
66
- "componentId": {
67
- "scope": "teambit.harmony",
68
- "name": "logger"
69
- }
70
- },
71
- "isOptional": false,
72
- "isSpread": false
73
- },
74
- {
75
- "__schema": "ParameterSchema",
76
- "location": {
77
- "filePath": "babel.main.runtime.ts",
78
- "line": 10,
79
- "character": 39
74
+ "name": "logger",
75
+ "type": {
76
+ "__schema": "TypeRefSchema",
77
+ "location": {
78
+ "filePath": "babel.main.runtime.ts",
79
+ "line": 10,
80
+ "character": 31
81
+ },
82
+ "name": "Logger",
83
+ "componentId": {
84
+ "scope": "teambit.harmony",
85
+ "name": "logger"
86
+ }
87
+ },
88
+ "isOptional": false,
89
+ "isSpread": false
80
90
  },
81
- "name": "compiler",
82
- "type": {
83
- "__schema": "TypeRefSchema",
91
+ {
92
+ "__schema": "ParameterSchema",
84
93
  "location": {
85
94
  "filePath": "babel.main.runtime.ts",
86
95
  "line": 10,
87
- "character": 57
96
+ "character": 39
88
97
  },
89
- "name": "CompilerMain",
90
- "componentId": {
91
- "scope": "teambit.compilation",
92
- "name": "compiler"
93
- }
98
+ "name": "compiler",
99
+ "type": {
100
+ "__schema": "TypeRefSchema",
101
+ "location": {
102
+ "filePath": "babel.main.runtime.ts",
103
+ "line": 10,
104
+ "character": 57
105
+ },
106
+ "name": "CompilerMain",
107
+ "componentId": {
108
+ "scope": "teambit.compilation",
109
+ "name": "compiler"
110
+ }
111
+ },
112
+ "isOptional": false,
113
+ "isSpread": false
114
+ }
115
+ ],
116
+ "returnType": {
117
+ "__schema": "ThisTypeSchema",
118
+ "location": {
119
+ "filePath": "babel.main.runtime.ts",
120
+ "line": 9,
121
+ "character": 1
94
122
  },
95
- "isOptional": false,
96
- "isSpread": false
97
- }
98
- ],
99
- "returnType": {
100
- "__schema": "ThisTypeSchema",
123
+ "name": "BabelMain"
124
+ },
125
+ "modifiers": []
126
+ },
127
+ {
128
+ "__schema": "FunctionLikeSchema",
101
129
  "location": {
102
130
  "filePath": "babel.main.runtime.ts",
103
- "line": 9,
104
- "character": 1
131
+ "line": 12,
132
+ "character": 3
105
133
  },
106
- "name": "BabelMain"
107
- },
108
- "modifiers": []
109
- },
110
- {
111
- "__schema": "FunctionLikeSchema",
112
- "location": {
113
- "filePath": "babel.main.runtime.ts",
114
- "line": 12,
115
- "character": 3
116
- },
117
- "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
118
- "name": "createCompiler",
119
- "params": [
120
- {
121
- "__schema": "ParameterSchema",
122
- "location": {
123
- "filePath": "babel.main.runtime.ts",
124
- "line": 12,
125
- "character": 18
126
- },
127
- "name": "options",
128
- "type": {
129
- "__schema": "TypeRefSchema",
134
+ "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
135
+ "name": "createCompiler",
136
+ "params": [
137
+ {
138
+ "__schema": "ParameterSchema",
130
139
  "location": {
131
140
  "filePath": "babel.main.runtime.ts",
132
141
  "line": 12,
133
- "character": 27
142
+ "character": 18
134
143
  },
135
- "name": "BabelCompilerOptions",
136
- "internalFilePath": "compiler-options.ts"
137
- },
138
- "isOptional": false,
139
- "isSpread": false
140
- },
141
- {
142
- "__schema": "ParameterSchema",
143
- "location": {
144
- "filePath": "babel.main.runtime.ts",
145
- "line": 12,
146
- "character": 49
144
+ "name": "options",
145
+ "type": {
146
+ "__schema": "TypeRefSchema",
147
+ "location": {
148
+ "filePath": "babel.main.runtime.ts",
149
+ "line": 12,
150
+ "character": 27
151
+ },
152
+ "name": "BabelCompilerOptions",
153
+ "internalFilePath": "compiler-options.ts"
154
+ },
155
+ "isOptional": false,
156
+ "isSpread": false
147
157
  },
148
- "name": "babelModule",
149
- "type": {
150
- "__schema": "InferenceTypeSchema",
158
+ {
159
+ "__schema": "ParameterSchema",
151
160
  "location": {
152
161
  "filePath": "babel.main.runtime.ts",
153
162
  "line": 12,
154
163
  "character": 49
155
164
  },
156
- "type": "typeof babel"
165
+ "name": "babelModule",
166
+ "type": {
167
+ "__schema": "InferenceTypeSchema",
168
+ "location": {
169
+ "filePath": "babel.main.runtime.ts",
170
+ "line": 12,
171
+ "character": 49
172
+ },
173
+ "type": "typeof babel"
174
+ },
175
+ "isOptional": true,
176
+ "defaultValue": "babel",
177
+ "isSpread": false
178
+ }
179
+ ],
180
+ "returnType": {
181
+ "__schema": "TypeRefSchema",
182
+ "location": {
183
+ "filePath": "babel.main.runtime.ts",
184
+ "line": 12,
185
+ "character": 3
157
186
  },
158
- "isOptional": true,
159
- "defaultValue": "babel",
160
- "isSpread": false
161
- }
162
- ],
163
- "returnType": {
164
- "__schema": "TypeRefSchema",
165
- "location": {
166
- "filePath": "babel.main.runtime.ts",
167
- "line": 12,
168
- "character": 3
187
+ "name": "BabelCompiler",
188
+ "componentId": {
189
+ "scope": "teambit.compilation",
190
+ "name": "babel-compiler",
191
+ "version": "1.1.8"
192
+ }
169
193
  },
170
- "name": "BabelCompiler",
171
- "componentId": {
172
- "scope": "teambit.compilation",
173
- "name": "babel-compiler",
174
- "version": "1.1.8"
175
- }
176
- },
177
- "modifiers": []
178
- },
179
- {
180
- "__schema": "FunctionLikeSchema",
181
- "location": {
182
- "filePath": "babel.main.runtime.ts",
183
- "line": 16,
184
- "character": 3
194
+ "modifiers": []
185
195
  },
186
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
187
- "name": "getPackageJsonProps",
188
- "params": [],
189
- "returnType": {
190
- "__schema": "InferenceTypeSchema",
196
+ {
197
+ "__schema": "FunctionLikeSchema",
191
198
  "location": {
192
199
  "filePath": "babel.main.runtime.ts",
193
200
  "line": 16,
194
201
  "character": 3
195
202
  },
196
- "type": "{\n main: string;\n}"
197
- },
198
- "modifiers": []
199
- },
200
- {
201
- "__schema": "VariableLikeSchema",
202
- "location": {
203
- "filePath": "babel.main.runtime.ts",
204
- "line": 22,
205
- "character": 3
203
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
204
+ "name": "getPackageJsonProps",
205
+ "params": [],
206
+ "returnType": {
207
+ "__schema": "InferenceTypeSchema",
208
+ "location": {
209
+ "filePath": "babel.main.runtime.ts",
210
+ "line": 16,
211
+ "character": 3
212
+ },
213
+ "type": "{\n main: string;\n}"
214
+ },
215
+ "modifiers": []
206
216
  },
207
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
208
- "name": "runtime",
209
- "type": {
210
- "__schema": "InferenceTypeSchema",
217
+ {
218
+ "__schema": "VariableLikeSchema",
211
219
  "location": {
212
220
  "filePath": "babel.main.runtime.ts",
213
221
  "line": 22,
214
222
  "character": 3
215
223
  },
216
- "type": "RuntimeDefinition"
217
- },
218
- "isOptional": true,
219
- "defaultValue": "MainRuntime"
220
- },
221
- {
222
- "__schema": "VariableLikeSchema",
223
- "location": {
224
- "filePath": "babel.main.runtime.ts",
225
- "line": 23,
226
- "character": 3
224
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
225
+ "name": "runtime",
226
+ "type": {
227
+ "__schema": "InferenceTypeSchema",
228
+ "location": {
229
+ "filePath": "babel.main.runtime.ts",
230
+ "line": 22,
231
+ "character": 3
232
+ },
233
+ "type": "RuntimeDefinition"
234
+ },
235
+ "isOptional": true,
236
+ "defaultValue": "MainRuntime"
227
237
  },
228
- "signature": "(property) BabelMain.dependencies: Aspect[]",
229
- "name": "dependencies",
230
- "type": {
231
- "__schema": "InferenceTypeSchema",
238
+ {
239
+ "__schema": "VariableLikeSchema",
232
240
  "location": {
233
241
  "filePath": "babel.main.runtime.ts",
234
242
  "line": 23,
235
243
  "character": 3
236
244
  },
237
- "type": "Aspect[]"
238
- },
239
- "isOptional": true,
240
- "defaultValue": "[LoggerAspect, CompilerAspect]"
241
- },
242
- {
243
- "__schema": "FunctionLikeSchema",
244
- "location": {
245
- "filePath": "babel.main.runtime.ts",
246
- "line": 25,
247
- "character": 3
248
- },
249
- "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
250
- "name": "provider",
251
- "params": [
252
- {
253
- "__schema": "ParameterSchema",
245
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
246
+ "name": "dependencies",
247
+ "type": {
248
+ "__schema": "InferenceTypeSchema",
254
249
  "location": {
255
250
  "filePath": "babel.main.runtime.ts",
256
- "line": 25,
257
- "character": 25
251
+ "line": 23,
252
+ "character": 3
258
253
  },
259
- "name": "[ loggerExt, compiler ]",
260
- "type": {
261
- "__schema": "TupleTypeSchema",
254
+ "type": "Aspect[]"
255
+ },
256
+ "isOptional": true,
257
+ "defaultValue": "[LoggerAspect, CompilerAspect]"
258
+ },
259
+ {
260
+ "__schema": "FunctionLikeSchema",
261
+ "location": {
262
+ "filePath": "babel.main.runtime.ts",
263
+ "line": 25,
264
+ "character": 3
265
+ },
266
+ "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
267
+ "name": "provider",
268
+ "params": [
269
+ {
270
+ "__schema": "ParameterSchema",
262
271
  "location": {
263
272
  "filePath": "babel.main.runtime.ts",
264
273
  "line": 25,
265
- "character": 48
274
+ "character": 25
266
275
  },
267
- "elements": [
268
- {
269
- "__schema": "TypeRefSchema",
270
- "location": {
271
- "filePath": "babel.main.runtime.ts",
272
- "line": 25,
273
- "character": 49
274
- },
275
- "name": "LoggerMain",
276
- "componentId": {
277
- "scope": "teambit.harmony",
278
- "name": "logger"
279
- }
276
+ "name": "[ loggerExt, compiler ]",
277
+ "type": {
278
+ "__schema": "TupleTypeSchema",
279
+ "location": {
280
+ "filePath": "babel.main.runtime.ts",
281
+ "line": 25,
282
+ "character": 48
280
283
  },
281
- {
282
- "__schema": "TypeRefSchema",
283
- "location": {
284
- "filePath": "babel.main.runtime.ts",
285
- "line": 25,
286
- "character": 61
284
+ "elements": [
285
+ {
286
+ "__schema": "TypeRefSchema",
287
+ "location": {
288
+ "filePath": "babel.main.runtime.ts",
289
+ "line": 25,
290
+ "character": 49
291
+ },
292
+ "name": "LoggerMain",
293
+ "componentId": {
294
+ "scope": "teambit.harmony",
295
+ "name": "logger"
296
+ }
287
297
  },
288
- "name": "CompilerMain",
289
- "componentId": {
290
- "scope": "teambit.compilation",
291
- "name": "compiler"
298
+ {
299
+ "__schema": "TypeRefSchema",
300
+ "location": {
301
+ "filePath": "babel.main.runtime.ts",
302
+ "line": 25,
303
+ "character": 61
304
+ },
305
+ "name": "CompilerMain",
306
+ "componentId": {
307
+ "scope": "teambit.compilation",
308
+ "name": "compiler"
309
+ }
292
310
  }
293
- }
294
- ]
311
+ ]
312
+ },
313
+ "isOptional": false,
314
+ "isSpread": false
315
+ }
316
+ ],
317
+ "returnType": {
318
+ "__schema": "InferenceTypeSchema",
319
+ "location": {
320
+ "filePath": "babel.main.runtime.ts",
321
+ "line": 25,
322
+ "character": 3
295
323
  },
296
- "isOptional": false,
297
- "isSpread": false
298
- }
299
- ],
300
- "returnType": {
301
- "__schema": "InferenceTypeSchema",
302
- "location": {
303
- "filePath": "babel.main.runtime.ts",
304
- "line": 25,
305
- "character": 3
324
+ "type": "Promise<BabelMain>"
306
325
  },
307
- "type": "Promise<BabelMain>"
308
- },
309
- "modifiers": [
310
- "static",
311
- "async"
312
- ]
313
- }
314
- ],
315
- "extendsNodes": [],
316
- "implementNodes": []
326
+ "modifiers": [
327
+ "static",
328
+ "async"
329
+ ]
330
+ }
331
+ ],
332
+ "extendsNodes": [],
333
+ "implementNodes": []
334
+ }
317
335
  },
318
336
  {
319
- "__schema": "VariableLikeSchema",
337
+ "__schema": "ExportSchema",
320
338
  "location": {
321
- "filePath": "babel.aspect.ts",
339
+ "filePath": "index.ts",
322
340
  "line": 3,
323
- "character": 14
341
+ "character": 10
324
342
  },
325
- "signature": "const BabelAspect: Aspect",
326
343
  "name": "BabelAspect",
327
- "type": {
328
- "__schema": "TypeRefSchema",
344
+ "exportNode": {
345
+ "__schema": "VariableLikeSchema",
329
346
  "location": {
330
347
  "filePath": "babel.aspect.ts",
331
348
  "line": 3,
332
349
  "character": 14
333
350
  },
334
- "name": "Aspect",
335
- "componentId": {
336
- "scope": "teambit.harmony",
337
- "name": "harmony",
338
- "version": "0.4.6"
339
- }
340
- },
341
- "isOptional": false,
342
- "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
351
+ "signature": "const BabelAspect: Aspect",
352
+ "name": "BabelAspect",
353
+ "type": {
354
+ "__schema": "TypeRefSchema",
355
+ "location": {
356
+ "filePath": "babel.aspect.ts",
357
+ "line": 3,
358
+ "character": 14
359
+ },
360
+ "name": "Aspect",
361
+ "componentId": {
362
+ "scope": "teambit.harmony",
363
+ "name": "harmony",
364
+ "version": "0.4.6"
365
+ }
366
+ },
367
+ "isOptional": false,
368
+ "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
369
+ }
343
370
  }
344
371
  ],
345
372
  "internals": []
@@ -696,7 +723,7 @@
696
723
  "componentId": {
697
724
  "scope": "teambit.compilation",
698
725
  "name": "babel",
699
- "version": "1.0.257"
726
+ "version": "1.0.259"
700
727
  },
701
728
  "taggedModuleExports": []
702
729
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.257/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.257/dist/babel.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.259/dist/babel.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.259/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.257",
3
+ "version": "1.0.259",
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.257"
9
+ "version": "1.0.259"
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.8",
15
- "@teambit/cli": "0.0.862",
16
- "@teambit/compiler": "1.0.257",
17
- "@teambit/logger": "0.0.955"
15
+ "@teambit/cli": "0.0.863",
16
+ "@teambit/compiler": "1.0.259",
17
+ "@teambit/logger": "0.0.956"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/mocha": "9.1.0",