@teambit/babel 1.0.188 → 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.
@@ -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.188" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/babel@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/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={24884:(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},37217:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(24884));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}},33227:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.188",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(33227),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(37217),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={87032:(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},62181:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(87032));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}},9478:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.189",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(9478),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(62181),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})()));
@@ -0,0 +1,702 @@
1
+ {
2
+ "__schema": "APISchema",
3
+ "location": {
4
+ "filePath": "index.ts",
5
+ "line": 1,
6
+ "character": 1
7
+ },
8
+ "module": {
9
+ "__schema": "ModuleSchema",
10
+ "location": {
11
+ "filePath": "index.ts",
12
+ "line": 1,
13
+ "character": 1
14
+ },
15
+ "exports": [
16
+ {
17
+ "__schema": "TypeRefSchema",
18
+ "location": {
19
+ "filePath": "index.ts",
20
+ "line": 1,
21
+ "character": 10
22
+ },
23
+ "name": "BabelCompiler",
24
+ "componentId": {
25
+ "scope": "teambit.compilation",
26
+ "name": "babel-compiler",
27
+ "version": "1.1.3"
28
+ }
29
+ },
30
+ {
31
+ "__schema": "ClassSchema",
32
+ "location": {
33
+ "filePath": "babel.main.runtime.ts",
34
+ "line": 9,
35
+ "character": 1
36
+ },
37
+ "signature": "class BabelMain",
38
+ "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",
60
+ "location": {
61
+ "filePath": "babel.main.runtime.ts",
62
+ "line": 10,
63
+ "character": 31
64
+ },
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
80
+ },
81
+ "name": "compiler",
82
+ "type": {
83
+ "__schema": "TypeRefSchema",
84
+ "location": {
85
+ "filePath": "babel.main.runtime.ts",
86
+ "line": 10,
87
+ "character": 57
88
+ },
89
+ "name": "CompilerMain",
90
+ "componentId": {
91
+ "scope": "teambit.compilation",
92
+ "name": "compiler"
93
+ }
94
+ },
95
+ "isOptional": false,
96
+ "isSpread": false
97
+ }
98
+ ],
99
+ "returnType": {
100
+ "__schema": "ThisTypeSchema",
101
+ "location": {
102
+ "filePath": "babel.main.runtime.ts",
103
+ "line": 9,
104
+ "character": 1
105
+ },
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",
130
+ "location": {
131
+ "filePath": "babel.main.runtime.ts",
132
+ "line": 12,
133
+ "character": 27
134
+ },
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
147
+ },
148
+ "name": "babelModule",
149
+ "type": {
150
+ "__schema": "InferenceTypeSchema",
151
+ "location": {
152
+ "filePath": "babel.main.runtime.ts",
153
+ "line": 12,
154
+ "character": 49
155
+ },
156
+ "type": "typeof babel"
157
+ },
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
169
+ },
170
+ "name": "BabelCompiler",
171
+ "componentId": {
172
+ "scope": "teambit.compilation",
173
+ "name": "babel-compiler",
174
+ "version": "1.1.3"
175
+ }
176
+ },
177
+ "modifiers": []
178
+ },
179
+ {
180
+ "__schema": "FunctionLikeSchema",
181
+ "location": {
182
+ "filePath": "babel.main.runtime.ts",
183
+ "line": 16,
184
+ "character": 3
185
+ },
186
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
187
+ "name": "getPackageJsonProps",
188
+ "params": [],
189
+ "returnType": {
190
+ "__schema": "InferenceTypeSchema",
191
+ "location": {
192
+ "filePath": "babel.main.runtime.ts",
193
+ "line": 16,
194
+ "character": 3
195
+ },
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
206
+ },
207
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
208
+ "name": "runtime",
209
+ "type": {
210
+ "__schema": "InferenceTypeSchema",
211
+ "location": {
212
+ "filePath": "babel.main.runtime.ts",
213
+ "line": 22,
214
+ "character": 3
215
+ },
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
227
+ },
228
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
229
+ "name": "dependencies",
230
+ "type": {
231
+ "__schema": "InferenceTypeSchema",
232
+ "location": {
233
+ "filePath": "babel.main.runtime.ts",
234
+ "line": 23,
235
+ "character": 3
236
+ },
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",
254
+ "location": {
255
+ "filePath": "babel.main.runtime.ts",
256
+ "line": 25,
257
+ "character": 25
258
+ },
259
+ "name": "[ loggerExt, compiler ]",
260
+ "type": {
261
+ "__schema": "TupleTypeSchema",
262
+ "location": {
263
+ "filePath": "babel.main.runtime.ts",
264
+ "line": 25,
265
+ "character": 48
266
+ },
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
+ }
280
+ },
281
+ {
282
+ "__schema": "TypeRefSchema",
283
+ "location": {
284
+ "filePath": "babel.main.runtime.ts",
285
+ "line": 25,
286
+ "character": 61
287
+ },
288
+ "name": "CompilerMain",
289
+ "componentId": {
290
+ "scope": "teambit.compilation",
291
+ "name": "compiler"
292
+ }
293
+ }
294
+ ]
295
+ },
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
306
+ },
307
+ "type": "Promise<BabelMain>"
308
+ },
309
+ "modifiers": [
310
+ "static",
311
+ "async"
312
+ ]
313
+ }
314
+ ],
315
+ "extendsNodes": [],
316
+ "implementNodes": []
317
+ },
318
+ {
319
+ "__schema": "VariableLikeSchema",
320
+ "location": {
321
+ "filePath": "babel.aspect.ts",
322
+ "line": 3,
323
+ "character": 14
324
+ },
325
+ "signature": "const BabelAspect: Aspect",
326
+ "name": "BabelAspect",
327
+ "type": {
328
+ "__schema": "TypeRefSchema",
329
+ "location": {
330
+ "filePath": "babel.aspect.ts",
331
+ "line": 3,
332
+ "character": 14
333
+ },
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})"
343
+ }
344
+ ],
345
+ "internals": []
346
+ },
347
+ "internals": [
348
+ {
349
+ "__schema": "ModuleSchema",
350
+ "location": {
351
+ "filePath": "babel.main.runtime.ts",
352
+ "line": 1,
353
+ "character": 1
354
+ },
355
+ "exports": [
356
+ {
357
+ "__schema": "ClassSchema",
358
+ "location": {
359
+ "filePath": "babel.main.runtime.ts",
360
+ "line": 9,
361
+ "character": 1
362
+ },
363
+ "signature": "class BabelMain",
364
+ "name": "BabelMain",
365
+ "members": [
366
+ {
367
+ "__schema": "ConstructorSchema",
368
+ "location": {
369
+ "filePath": "babel.main.runtime.ts",
370
+ "line": 10,
371
+ "character": 3
372
+ },
373
+ "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
374
+ "name": "constructor",
375
+ "params": [
376
+ {
377
+ "__schema": "ParameterSchema",
378
+ "location": {
379
+ "filePath": "babel.main.runtime.ts",
380
+ "line": 10,
381
+ "character": 15
382
+ },
383
+ "name": "logger",
384
+ "type": {
385
+ "__schema": "TypeRefSchema",
386
+ "location": {
387
+ "filePath": "babel.main.runtime.ts",
388
+ "line": 10,
389
+ "character": 31
390
+ },
391
+ "name": "Logger",
392
+ "componentId": {
393
+ "scope": "teambit.harmony",
394
+ "name": "logger"
395
+ }
396
+ },
397
+ "isOptional": false,
398
+ "isSpread": false
399
+ },
400
+ {
401
+ "__schema": "ParameterSchema",
402
+ "location": {
403
+ "filePath": "babel.main.runtime.ts",
404
+ "line": 10,
405
+ "character": 39
406
+ },
407
+ "name": "compiler",
408
+ "type": {
409
+ "__schema": "TypeRefSchema",
410
+ "location": {
411
+ "filePath": "babel.main.runtime.ts",
412
+ "line": 10,
413
+ "character": 57
414
+ },
415
+ "name": "CompilerMain",
416
+ "componentId": {
417
+ "scope": "teambit.compilation",
418
+ "name": "compiler"
419
+ }
420
+ },
421
+ "isOptional": false,
422
+ "isSpread": false
423
+ }
424
+ ],
425
+ "returnType": {
426
+ "__schema": "ThisTypeSchema",
427
+ "location": {
428
+ "filePath": "babel.main.runtime.ts",
429
+ "line": 9,
430
+ "character": 1
431
+ },
432
+ "name": "BabelMain"
433
+ },
434
+ "modifiers": []
435
+ },
436
+ {
437
+ "__schema": "FunctionLikeSchema",
438
+ "location": {
439
+ "filePath": "babel.main.runtime.ts",
440
+ "line": 12,
441
+ "character": 3
442
+ },
443
+ "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
444
+ "name": "createCompiler",
445
+ "params": [
446
+ {
447
+ "__schema": "ParameterSchema",
448
+ "location": {
449
+ "filePath": "babel.main.runtime.ts",
450
+ "line": 12,
451
+ "character": 18
452
+ },
453
+ "name": "options",
454
+ "type": {
455
+ "__schema": "TypeRefSchema",
456
+ "location": {
457
+ "filePath": "babel.main.runtime.ts",
458
+ "line": 12,
459
+ "character": 27
460
+ },
461
+ "name": "BabelCompilerOptions",
462
+ "internalFilePath": "compiler-options.ts"
463
+ },
464
+ "isOptional": false,
465
+ "isSpread": false
466
+ },
467
+ {
468
+ "__schema": "ParameterSchema",
469
+ "location": {
470
+ "filePath": "babel.main.runtime.ts",
471
+ "line": 12,
472
+ "character": 49
473
+ },
474
+ "name": "babelModule",
475
+ "type": {
476
+ "__schema": "InferenceTypeSchema",
477
+ "location": {
478
+ "filePath": "babel.main.runtime.ts",
479
+ "line": 12,
480
+ "character": 49
481
+ },
482
+ "type": "typeof babel"
483
+ },
484
+ "isOptional": true,
485
+ "defaultValue": "babel",
486
+ "isSpread": false
487
+ }
488
+ ],
489
+ "returnType": {
490
+ "__schema": "TypeRefSchema",
491
+ "location": {
492
+ "filePath": "babel.main.runtime.ts",
493
+ "line": 12,
494
+ "character": 3
495
+ },
496
+ "name": "BabelCompiler",
497
+ "componentId": {
498
+ "scope": "teambit.compilation",
499
+ "name": "babel-compiler",
500
+ "version": "1.1.3"
501
+ }
502
+ },
503
+ "modifiers": []
504
+ },
505
+ {
506
+ "__schema": "FunctionLikeSchema",
507
+ "location": {
508
+ "filePath": "babel.main.runtime.ts",
509
+ "line": 16,
510
+ "character": 3
511
+ },
512
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
513
+ "name": "getPackageJsonProps",
514
+ "params": [],
515
+ "returnType": {
516
+ "__schema": "InferenceTypeSchema",
517
+ "location": {
518
+ "filePath": "babel.main.runtime.ts",
519
+ "line": 16,
520
+ "character": 3
521
+ },
522
+ "type": "{\n main: string;\n}"
523
+ },
524
+ "modifiers": []
525
+ },
526
+ {
527
+ "__schema": "VariableLikeSchema",
528
+ "location": {
529
+ "filePath": "babel.main.runtime.ts",
530
+ "line": 22,
531
+ "character": 3
532
+ },
533
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
534
+ "name": "runtime",
535
+ "type": {
536
+ "__schema": "InferenceTypeSchema",
537
+ "location": {
538
+ "filePath": "babel.main.runtime.ts",
539
+ "line": 22,
540
+ "character": 3
541
+ },
542
+ "type": "RuntimeDefinition"
543
+ },
544
+ "isOptional": true,
545
+ "defaultValue": "MainRuntime"
546
+ },
547
+ {
548
+ "__schema": "VariableLikeSchema",
549
+ "location": {
550
+ "filePath": "babel.main.runtime.ts",
551
+ "line": 23,
552
+ "character": 3
553
+ },
554
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
555
+ "name": "dependencies",
556
+ "type": {
557
+ "__schema": "InferenceTypeSchema",
558
+ "location": {
559
+ "filePath": "babel.main.runtime.ts",
560
+ "line": 23,
561
+ "character": 3
562
+ },
563
+ "type": "Aspect[]"
564
+ },
565
+ "isOptional": true,
566
+ "defaultValue": "[LoggerAspect, CompilerAspect]"
567
+ },
568
+ {
569
+ "__schema": "FunctionLikeSchema",
570
+ "location": {
571
+ "filePath": "babel.main.runtime.ts",
572
+ "line": 25,
573
+ "character": 3
574
+ },
575
+ "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
576
+ "name": "provider",
577
+ "params": [
578
+ {
579
+ "__schema": "ParameterSchema",
580
+ "location": {
581
+ "filePath": "babel.main.runtime.ts",
582
+ "line": 25,
583
+ "character": 25
584
+ },
585
+ "name": "[ loggerExt, compiler ]",
586
+ "type": {
587
+ "__schema": "TupleTypeSchema",
588
+ "location": {
589
+ "filePath": "babel.main.runtime.ts",
590
+ "line": 25,
591
+ "character": 48
592
+ },
593
+ "elements": [
594
+ {
595
+ "__schema": "TypeRefSchema",
596
+ "location": {
597
+ "filePath": "babel.main.runtime.ts",
598
+ "line": 25,
599
+ "character": 49
600
+ },
601
+ "name": "LoggerMain",
602
+ "componentId": {
603
+ "scope": "teambit.harmony",
604
+ "name": "logger"
605
+ }
606
+ },
607
+ {
608
+ "__schema": "TypeRefSchema",
609
+ "location": {
610
+ "filePath": "babel.main.runtime.ts",
611
+ "line": 25,
612
+ "character": 61
613
+ },
614
+ "name": "CompilerMain",
615
+ "componentId": {
616
+ "scope": "teambit.compilation",
617
+ "name": "compiler"
618
+ }
619
+ }
620
+ ]
621
+ },
622
+ "isOptional": false,
623
+ "isSpread": false
624
+ }
625
+ ],
626
+ "returnType": {
627
+ "__schema": "InferenceTypeSchema",
628
+ "location": {
629
+ "filePath": "babel.main.runtime.ts",
630
+ "line": 25,
631
+ "character": 3
632
+ },
633
+ "type": "Promise<BabelMain>"
634
+ },
635
+ "modifiers": [
636
+ "static",
637
+ "async"
638
+ ]
639
+ }
640
+ ],
641
+ "extendsNodes": [],
642
+ "implementNodes": []
643
+ }
644
+ ],
645
+ "internals": [
646
+ {
647
+ "__schema": "UnImplementedSchema",
648
+ "location": {
649
+ "filePath": "babel.main.runtime.ts",
650
+ "line": 31,
651
+ "character": 1
652
+ },
653
+ "name": "BabelAspect.addRuntime(BabelMain);",
654
+ "type": "ExpressionStatement"
655
+ }
656
+ ]
657
+ },
658
+ {
659
+ "__schema": "ModuleSchema",
660
+ "location": {
661
+ "filePath": "babel.aspect.ts",
662
+ "line": 1,
663
+ "character": 1
664
+ },
665
+ "exports": [
666
+ {
667
+ "__schema": "VariableLikeSchema",
668
+ "location": {
669
+ "filePath": "babel.aspect.ts",
670
+ "line": 3,
671
+ "character": 14
672
+ },
673
+ "signature": "const BabelAspect: Aspect",
674
+ "name": "BabelAspect",
675
+ "type": {
676
+ "__schema": "TypeRefSchema",
677
+ "location": {
678
+ "filePath": "babel.aspect.ts",
679
+ "line": 3,
680
+ "character": 14
681
+ },
682
+ "name": "Aspect",
683
+ "componentId": {
684
+ "scope": "teambit.harmony",
685
+ "name": "harmony",
686
+ "version": "0.4.6"
687
+ }
688
+ },
689
+ "isOptional": false,
690
+ "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
691
+ }
692
+ ],
693
+ "internals": []
694
+ }
695
+ ],
696
+ "componentId": {
697
+ "scope": "teambit.compilation",
698
+ "name": "babel",
699
+ "version": "1.0.189"
700
+ },
701
+ "taggedModuleExports": []
702
+ }
@@ -1 +1 @@
1
- {"version":3,"names":["_harmony","data","require","BabelAspect","exports","Aspect","create","id"],"sources":["babel.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const BabelAspect = Aspect.create({\n id: 'teambit.compilation/babel',\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,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EACvCC,EAAE,EAAE;AACN,CAAC,CAAC"}
1
+ {"version":3,"names":["_harmony","data","require","BabelAspect","exports","Aspect","create","id"],"sources":["babel.aspect.ts"],"sourcesContent":["import { Aspect } from '@teambit/harmony';\n\nexport const BabelAspect = Aspect.create({\n id: 'teambit.compilation/babel',\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,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,iBAAM,CAACC,MAAM,CAAC;EACvCC,EAAE,EAAE;AACN,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","data","_interopRequireDefault","require","obj","__esModule","default","Logo","createElement","style","height","display","justifyContent","width","src","exports"],"sources":["babel.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/babel.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;AAAmD,CAAE,CACjF,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":["babel.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/babel.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;AAAmD,CAAE,CACjF,CACN;AAACC,OAAA,CAAAR,IAAA,GAAAA,IAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_cli","data","require","_compiler","_logger","_compilation","babel","_interopRequireWildcard","_babel","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_defineProperty","obj","key","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","BabelMain","constructor","logger","compiler","createCompiler","options","babelModule","BabelCompiler","BabelAspect","id","babelTransformOptions","getPackageJsonProps","main","provider","loggerExt","createLogger","exports","MainRuntime","LoggerAspect","CompilerAspect","addRuntime"],"sources":["babel.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { BabelCompiler } from '@teambit/compilation.babel-compiler';\nimport * as babel from '@babel/core';\nimport { BabelCompilerOptions } from './compiler-options';\nimport { BabelAspect } from './babel.aspect';\n\nexport class BabelMain {\n constructor(private logger: Logger, private compiler: CompilerMain) {}\n\n createCompiler(options: BabelCompilerOptions, babelModule = babel): BabelCompiler {\n return new BabelCompiler(BabelAspect.id, this.logger, options, options.babelTransformOptions || {}, babelModule);\n }\n\n getPackageJsonProps() {\n return {\n main: 'dist/{main}.js',\n };\n }\n\n static runtime = MainRuntime;\n static dependencies = [LoggerAspect, CompilerAspect];\n\n static async provider([loggerExt, compiler]: [LoggerMain, CompilerMain]) {\n const logger = loggerExt.createLogger(BabelAspect.id);\n return new BabelMain(logger, compiler);\n }\n}\n\nBabelAspect.addRuntime(BabelMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;E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,KAAK,CAAD,CAAC,EAAiB;IAChF,OAAO,KAAI6C,4BAAa,EAACC,oBAAW,CAACC,EAAE,EAAE,IAAI,CAACP,MAAM,EAAEG,OAAO,EAAEA,OAAO,CAACK,qBAAqB,IAAI,CAAC,CAAC,EAAEJ,WAAW,CAAC;EAClH;EAEAK,mBAAmBA,CAAA,EAAG;IACpB,OAAO;MACLC,IAAI,EAAE;IACR,CAAC;EACH;EAKA,aAAaC,QAAQA,CAAC,CAACC,SAAS,EAAEX,QAAQ,CAA6B,EAAE;IACvE,MAAMD,MAAM,GAAGY,SAAS,CAACC,YAAY,CAACP,oBAAW,CAACC,EAAE,CAAC;IACrD,OAAO,IAAIT,SAAS,CAACE,MAAM,EAAEC,QAAQ,CAAC;EACxC;AACF;AAACa,OAAA,CAAAhB,SAAA,GAAAA,SAAA;AAAAd,eAAA,CApBYc,SAAS,aAaHiB,kBAAW;AAAA/B,eAAA,CAbjBc,SAAS,kBAcE,CAACkB,sBAAY,EAAEC,0BAAc,CAAC;AAQtDX,oBAAW,CAACY,UAAU,CAACpB,SAAS,CAAC"}
1
+ {"version":3,"names":["_cli","data","require","_compiler","_logger","_compilation","babel","_interopRequireWildcard","_babel","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_defineProperty","obj","key","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","BabelMain","constructor","logger","compiler","createCompiler","options","babelModule","BabelCompiler","BabelAspect","id","babelTransformOptions","getPackageJsonProps","main","provider","loggerExt","createLogger","exports","MainRuntime","LoggerAspect","CompilerAspect","addRuntime"],"sources":["babel.main.runtime.ts"],"sourcesContent":["import { MainRuntime } from '@teambit/cli';\nimport { CompilerAspect, CompilerMain } from '@teambit/compiler';\nimport { Logger, LoggerAspect, LoggerMain } from '@teambit/logger';\nimport { BabelCompiler } from '@teambit/compilation.babel-compiler';\nimport * as babel from '@babel/core';\nimport { BabelCompilerOptions } from './compiler-options';\nimport { BabelAspect } from './babel.aspect';\n\nexport class BabelMain {\n constructor(private logger: Logger, private compiler: CompilerMain) {}\n\n createCompiler(options: BabelCompilerOptions, babelModule = babel): BabelCompiler {\n return new BabelCompiler(BabelAspect.id, this.logger, options, options.babelTransformOptions || {}, babelModule);\n }\n\n getPackageJsonProps() {\n return {\n main: 'dist/{main}.js',\n };\n }\n\n static runtime = MainRuntime;\n static dependencies = [LoggerAspect, CompilerAspect];\n\n static async provider([loggerExt, compiler]: [LoggerMain, CompilerMain]) {\n const logger = loggerExt.createLogger(BabelAspect.id);\n return new BabelMain(logger, compiler);\n }\n}\n\nBabelAspect.addRuntime(BabelMain);\n"],"mappings":";;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,OAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,aAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,YAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,MAAA;EAAA,MAAAL,IAAA,GAAAM,uBAAA,CAAAL,OAAA;EAAAI,KAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,OAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,MAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;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EAAE,CAAC;IACrD,OAAO,IAAIT,SAAS,CAACE,MAAM,EAAEC,QAAQ,CAAC;EACxC;AACF;AAACa,OAAA,CAAAhB,SAAA,GAAAA,SAAA;AAAAd,eAAA,CApBYc,SAAS,aAaHiB,kBAAW;AAAA/B,eAAA,CAbjBc,SAAS,kBAcE,CAACkB,sBAAY,EAAEC,0BAAc,CAAC;AAQtDX,oBAAW,CAACY,UAAU,CAACpB,SAAS,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["compiler-options.ts"],"sourcesContent":["import type { TransformOptions } from '@babel/core';\nimport { CompilerOptions } from '@teambit/compiler';\n\nexport type BabelCompilerOptions = {\n /**\n * TransformOptions of Babel. @see https://babeljs.io/docs/en/options\n *\n * `babel.config.json` and `.babelrc.json` use the same options, so you can require the json file\n * and pass it as the option parameter. e.g.\n * ```\n * createCompiler({ babelTransformOptions: require('./babel.config.json') });\n * ```\n */\n babelTransformOptions?: TransformOptions;\n\n /**\n * Determines which files should be compiled by the Babel compiler.\n * It only works with the file types supported by Babel (.ts, .tsx, .js, .jsx, .d.ts).\n * See https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */\n supportedFilesGlobPatterns?: string[];\n} & Partial<CompilerOptions>;\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["compiler-options.ts"],"sourcesContent":["import type { TransformOptions } from '@babel/core';\nimport { CompilerOptions } from '@teambit/compiler';\n\nexport type BabelCompilerOptions = {\n /**\n * TransformOptions of Babel. @see https://babeljs.io/docs/en/options\n *\n * `babel.config.json` and `.babelrc.json` use the same options, so you can require the json file\n * and pass it as the option parameter. e.g.\n * ```\n * createCompiler({ babelTransformOptions: require('./babel.config.json') });\n * ```\n */\n babelTransformOptions?: TransformOptions;\n\n /**\n * Determines which files should be compiled by the Babel compiler.\n * It only works with the file types supported by Babel (.ts, .tsx, .js, .jsx, .d.ts).\n * See https://github.com/mrmlnc/fast-glob for the supported glob patters syntax.\n */\n supportedFilesGlobPatterns?: string[];\n} & Partial<CompilerOptions>;\n"],"mappings":"","ignoreList":[]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_compilation","data","require","_babel"],"sources":["index.ts"],"sourcesContent":["export { BabelCompiler } from '@teambit/compilation.babel-compiler';\nexport type { BabelMain } from './babel.main.runtime';\nexport { BabelAspect } from './babel.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA"}
1
+ {"version":3,"names":["_compilation","data","require","_babel"],"sources":["index.ts"],"sourcesContent":["export { BabelCompiler } from '@teambit/compilation.babel-compiler';\nexport type { BabelMain } from './babel.main.runtime';\nexport { BabelAspect } from './babel.aspect';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAAA,aAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,YAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.compilation_babel@1.0.189/dist/babel.composition.js';
2
+ import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec36fa42b9dbedfc12ecb7bb63e03fcfe6/teambit.compilation_babel@1.0.189/dist/babel.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,25 +1,25 @@
1
1
  {
2
2
  "name": "@teambit/babel",
3
- "version": "1.0.188",
3
+ "version": "1.0.189",
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.188"
9
+ "version": "1.0.189"
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.3",
15
- "@teambit/cli": "0.0.855",
16
- "@teambit/compiler": "1.0.188",
17
- "@teambit/logger": "0.0.948"
15
+ "@teambit/cli": "0.0.856",
16
+ "@teambit/compiler": "1.0.189",
17
+ "@teambit/logger": "0.0.949"
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.25",
22
+ "@teambit/harmony.envs.core-aspect-env": "0.0.27",
23
23
  "@teambit/compilation.aspect-docs.babel": "0.0.168"
24
24
  },
25
25
  "peerDependencies": {
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_babel@1.0.188/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_babel@1.0.188/dist/babel.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"}]};