@teambit/babel 1.0.510 → 1.0.511

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.510" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/babel@1.0.511" 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={2248:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.172",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},8485:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(2248));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},9153:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.510",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(9153),a=(n(1594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(8485),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})()));
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={2248:(e,t,n)=>{var o={id:"teambit.compilation/aspect-docs/babel@0.0.172",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},8485:(e,t,n)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return o.default}});var o=r(n(2248));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},8280:(e,t,n)=>{var o={id:"teambit.compilation/babel@1.0.511",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(8280),a=(n(1594),n(5016));const l=TeambitMdxUiMdxScopeContext;var p=n(8485),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})()));
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.510/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.510/dist/babel.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.511/dist/babel.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.511/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.510",
3
+ "version": "1.0.511",
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.510"
9
+ "version": "1.0.511"
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.1087",
16
- "@teambit/compiler": "1.0.510",
17
- "@teambit/logger": "0.0.1180"
15
+ "@teambit/cli": "0.0.1088",
16
+ "@teambit/compiler": "1.0.511",
17
+ "@teambit/logger": "0.0.1181"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/mocha": "9.1.0",
@@ -1,698 +0,0 @@
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": "ExportSchema",
18
- "location": {
19
- "filePath": "index.ts",
20
- "line": 1,
21
- "character": 10
22
- },
23
- "signature": "export { BabelCompiler };\n\nBabelCompiler",
24
- "name": "BabelCompiler",
25
- "exportNode": {
26
- "__schema": "TypeRefSchema",
27
- "location": {
28
- "filePath": "index.ts",
29
- "line": 1,
30
- "character": 10
31
- },
32
- "name": "BabelCompiler",
33
- "componentId": {
34
- "scope": "teambit.compilation",
35
- "name": "babel-compiler",
36
- "version": "1.1.13"
37
- }
38
- }
39
- },
40
- {
41
- "__schema": "ExportSchema",
42
- "location": {
43
- "filePath": "index.ts",
44
- "line": 2,
45
- "character": 15
46
- },
47
- "signature": "class BabelMain",
48
- "name": "BabelMain",
49
- "exportNode": {
50
- "__schema": "ClassSchema",
51
- "location": {
52
- "filePath": "babel.main.runtime.ts",
53
- "line": 9,
54
- "character": 1
55
- },
56
- "signature": "class BabelMain",
57
- "name": "BabelMain",
58
- "members": [
59
- {
60
- "__schema": "ConstructorSchema",
61
- "location": {
62
- "filePath": "babel.main.runtime.ts",
63
- "line": 10,
64
- "character": 3
65
- },
66
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
67
- "name": "constructor",
68
- "params": [
69
- {
70
- "__schema": "ParameterSchema",
71
- "location": {
72
- "filePath": "babel.main.runtime.ts",
73
- "line": 11,
74
- "character": 5
75
- },
76
- "name": "logger",
77
- "type": {
78
- "__schema": "TypeRefSchema",
79
- "location": {
80
- "filePath": "babel.main.runtime.ts",
81
- "line": 11,
82
- "character": 21
83
- },
84
- "name": "Logger"
85
- },
86
- "isOptional": false,
87
- "isSpread": false
88
- },
89
- {
90
- "__schema": "ParameterSchema",
91
- "location": {
92
- "filePath": "babel.main.runtime.ts",
93
- "line": 12,
94
- "character": 5
95
- },
96
- "name": "compiler",
97
- "type": {
98
- "__schema": "TypeRefSchema",
99
- "location": {
100
- "filePath": "babel.main.runtime.ts",
101
- "line": 12,
102
- "character": 23
103
- },
104
- "name": "CompilerMain"
105
- },
106
- "isOptional": false,
107
- "isSpread": false
108
- }
109
- ],
110
- "returnType": {
111
- "__schema": "ThisTypeSchema",
112
- "location": {
113
- "filePath": "babel.main.runtime.ts",
114
- "line": 9,
115
- "character": 1
116
- },
117
- "name": "BabelMain"
118
- },
119
- "modifiers": []
120
- },
121
- {
122
- "__schema": "FunctionLikeSchema",
123
- "location": {
124
- "filePath": "babel.main.runtime.ts",
125
- "line": 15,
126
- "character": 3
127
- },
128
- "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
129
- "name": "createCompiler",
130
- "params": [
131
- {
132
- "__schema": "ParameterSchema",
133
- "location": {
134
- "filePath": "babel.main.runtime.ts",
135
- "line": 15,
136
- "character": 18
137
- },
138
- "name": "options",
139
- "type": {
140
- "__schema": "TypeRefSchema",
141
- "location": {
142
- "filePath": "babel.main.runtime.ts",
143
- "line": 15,
144
- "character": 27
145
- },
146
- "name": "BabelCompilerOptions"
147
- },
148
- "isOptional": false,
149
- "isSpread": false
150
- },
151
- {
152
- "__schema": "ParameterSchema",
153
- "location": {
154
- "filePath": "babel.main.runtime.ts",
155
- "line": 15,
156
- "character": 49
157
- },
158
- "name": "babelModule",
159
- "type": {
160
- "__schema": "InferenceTypeSchema",
161
- "location": {
162
- "filePath": "babel.main.runtime.ts",
163
- "line": 15,
164
- "character": 49
165
- },
166
- "type": "typeof babel"
167
- },
168
- "isOptional": true,
169
- "defaultValue": "babel",
170
- "isSpread": false
171
- }
172
- ],
173
- "returnType": {
174
- "__schema": "TypeRefSchema",
175
- "location": {
176
- "filePath": "babel.main.runtime.ts",
177
- "line": 15,
178
- "character": 3
179
- },
180
- "name": "BabelCompiler",
181
- "componentId": {
182
- "scope": "teambit.compilation",
183
- "name": "babel-compiler",
184
- "version": "1.1.13"
185
- }
186
- },
187
- "modifiers": []
188
- },
189
- {
190
- "__schema": "FunctionLikeSchema",
191
- "location": {
192
- "filePath": "babel.main.runtime.ts",
193
- "line": 19,
194
- "character": 3
195
- },
196
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
197
- "name": "getPackageJsonProps",
198
- "params": [],
199
- "returnType": {
200
- "__schema": "InferenceTypeSchema",
201
- "location": {
202
- "filePath": "babel.main.runtime.ts",
203
- "line": 19,
204
- "character": 3
205
- },
206
- "type": "{\n main: string;\n}"
207
- },
208
- "modifiers": []
209
- },
210
- {
211
- "__schema": "VariableLikeSchema",
212
- "location": {
213
- "filePath": "babel.main.runtime.ts",
214
- "line": 25,
215
- "character": 3
216
- },
217
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
218
- "name": "runtime",
219
- "type": {
220
- "__schema": "InferenceTypeSchema",
221
- "location": {
222
- "filePath": "babel.main.runtime.ts",
223
- "line": 25,
224
- "character": 3
225
- },
226
- "type": "RuntimeDefinition"
227
- },
228
- "isOptional": true,
229
- "defaultValue": "MainRuntime"
230
- },
231
- {
232
- "__schema": "VariableLikeSchema",
233
- "location": {
234
- "filePath": "babel.main.runtime.ts",
235
- "line": 26,
236
- "character": 3
237
- },
238
- "signature": "(property) BabelMain.dependencies: Aspect[]",
239
- "name": "dependencies",
240
- "type": {
241
- "__schema": "InferenceTypeSchema",
242
- "location": {
243
- "filePath": "babel.main.runtime.ts",
244
- "line": 26,
245
- "character": 3
246
- },
247
- "type": "Aspect[]"
248
- },
249
- "isOptional": true,
250
- "defaultValue": "[LoggerAspect, CompilerAspect]"
251
- },
252
- {
253
- "__schema": "FunctionLikeSchema",
254
- "location": {
255
- "filePath": "babel.main.runtime.ts",
256
- "line": 28,
257
- "character": 3
258
- },
259
- "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
260
- "name": "provider",
261
- "params": [
262
- {
263
- "__schema": "ParameterSchema",
264
- "location": {
265
- "filePath": "babel.main.runtime.ts",
266
- "line": 28,
267
- "character": 25
268
- },
269
- "name": "[ loggerExt, compiler ]",
270
- "type": {
271
- "__schema": "TupleTypeSchema",
272
- "location": {
273
- "filePath": "babel.main.runtime.ts",
274
- "line": 28,
275
- "character": 48
276
- },
277
- "elements": [
278
- {
279
- "__schema": "TypeRefSchema",
280
- "location": {
281
- "filePath": "babel.main.runtime.ts",
282
- "line": 28,
283
- "character": 49
284
- },
285
- "name": "LoggerMain"
286
- },
287
- {
288
- "__schema": "TypeRefSchema",
289
- "location": {
290
- "filePath": "babel.main.runtime.ts",
291
- "line": 28,
292
- "character": 61
293
- },
294
- "name": "CompilerMain"
295
- }
296
- ]
297
- },
298
- "isOptional": false,
299
- "isSpread": false
300
- }
301
- ],
302
- "returnType": {
303
- "__schema": "InferenceTypeSchema",
304
- "location": {
305
- "filePath": "babel.main.runtime.ts",
306
- "line": 28,
307
- "character": 3
308
- },
309
- "type": "Promise<BabelMain>"
310
- },
311
- "modifiers": [
312
- "static",
313
- "async"
314
- ]
315
- }
316
- ],
317
- "extendsNodes": [],
318
- "implementNodes": []
319
- }
320
- },
321
- {
322
- "__schema": "ExportSchema",
323
- "location": {
324
- "filePath": "index.ts",
325
- "line": 3,
326
- "character": 10
327
- },
328
- "signature": "const BabelAspect: Aspect",
329
- "name": "BabelAspect",
330
- "exportNode": {
331
- "__schema": "VariableLikeSchema",
332
- "location": {
333
- "filePath": "babel.aspect.ts",
334
- "line": 3,
335
- "character": 14
336
- },
337
- "signature": "const BabelAspect: Aspect",
338
- "name": "BabelAspect",
339
- "type": {
340
- "__schema": "TypeRefSchema",
341
- "location": {
342
- "filePath": "babel.aspect.ts",
343
- "line": 3,
344
- "character": 14
345
- },
346
- "name": "Aspect",
347
- "componentId": {
348
- "scope": "teambit.harmony",
349
- "name": "harmony",
350
- "version": "0.4.6"
351
- }
352
- },
353
- "isOptional": false,
354
- "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
355
- }
356
- }
357
- ],
358
- "internals": []
359
- },
360
- "internals": [
361
- {
362
- "__schema": "ModuleSchema",
363
- "location": {
364
- "filePath": "babel.main.runtime.ts",
365
- "line": 1,
366
- "character": 1
367
- },
368
- "exports": [
369
- {
370
- "__schema": "ClassSchema",
371
- "location": {
372
- "filePath": "babel.main.runtime.ts",
373
- "line": 9,
374
- "character": 1
375
- },
376
- "signature": "class BabelMain",
377
- "name": "BabelMain",
378
- "members": [
379
- {
380
- "__schema": "ConstructorSchema",
381
- "location": {
382
- "filePath": "babel.main.runtime.ts",
383
- "line": 10,
384
- "character": 3
385
- },
386
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
387
- "name": "constructor",
388
- "params": [
389
- {
390
- "__schema": "ParameterSchema",
391
- "location": {
392
- "filePath": "babel.main.runtime.ts",
393
- "line": 11,
394
- "character": 5
395
- },
396
- "name": "logger",
397
- "type": {
398
- "__schema": "TypeRefSchema",
399
- "location": {
400
- "filePath": "babel.main.runtime.ts",
401
- "line": 11,
402
- "character": 21
403
- },
404
- "name": "Logger"
405
- },
406
- "isOptional": false,
407
- "isSpread": false
408
- },
409
- {
410
- "__schema": "ParameterSchema",
411
- "location": {
412
- "filePath": "babel.main.runtime.ts",
413
- "line": 12,
414
- "character": 5
415
- },
416
- "name": "compiler",
417
- "type": {
418
- "__schema": "TypeRefSchema",
419
- "location": {
420
- "filePath": "babel.main.runtime.ts",
421
- "line": 12,
422
- "character": 23
423
- },
424
- "name": "CompilerMain"
425
- },
426
- "isOptional": false,
427
- "isSpread": false
428
- }
429
- ],
430
- "returnType": {
431
- "__schema": "ThisTypeSchema",
432
- "location": {
433
- "filePath": "babel.main.runtime.ts",
434
- "line": 9,
435
- "character": 1
436
- },
437
- "name": "BabelMain"
438
- },
439
- "modifiers": []
440
- },
441
- {
442
- "__schema": "FunctionLikeSchema",
443
- "location": {
444
- "filePath": "babel.main.runtime.ts",
445
- "line": 15,
446
- "character": 3
447
- },
448
- "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
449
- "name": "createCompiler",
450
- "params": [
451
- {
452
- "__schema": "ParameterSchema",
453
- "location": {
454
- "filePath": "babel.main.runtime.ts",
455
- "line": 15,
456
- "character": 18
457
- },
458
- "name": "options",
459
- "type": {
460
- "__schema": "TypeRefSchema",
461
- "location": {
462
- "filePath": "babel.main.runtime.ts",
463
- "line": 15,
464
- "character": 27
465
- },
466
- "name": "BabelCompilerOptions"
467
- },
468
- "isOptional": false,
469
- "isSpread": false
470
- },
471
- {
472
- "__schema": "ParameterSchema",
473
- "location": {
474
- "filePath": "babel.main.runtime.ts",
475
- "line": 15,
476
- "character": 49
477
- },
478
- "name": "babelModule",
479
- "type": {
480
- "__schema": "InferenceTypeSchema",
481
- "location": {
482
- "filePath": "babel.main.runtime.ts",
483
- "line": 15,
484
- "character": 49
485
- },
486
- "type": "typeof babel"
487
- },
488
- "isOptional": true,
489
- "defaultValue": "babel",
490
- "isSpread": false
491
- }
492
- ],
493
- "returnType": {
494
- "__schema": "TypeRefSchema",
495
- "location": {
496
- "filePath": "babel.main.runtime.ts",
497
- "line": 15,
498
- "character": 3
499
- },
500
- "name": "BabelCompiler",
501
- "componentId": {
502
- "scope": "teambit.compilation",
503
- "name": "babel-compiler",
504
- "version": "1.1.13"
505
- }
506
- },
507
- "modifiers": []
508
- },
509
- {
510
- "__schema": "FunctionLikeSchema",
511
- "location": {
512
- "filePath": "babel.main.runtime.ts",
513
- "line": 19,
514
- "character": 3
515
- },
516
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
517
- "name": "getPackageJsonProps",
518
- "params": [],
519
- "returnType": {
520
- "__schema": "InferenceTypeSchema",
521
- "location": {
522
- "filePath": "babel.main.runtime.ts",
523
- "line": 19,
524
- "character": 3
525
- },
526
- "type": "{\n main: string;\n}"
527
- },
528
- "modifiers": []
529
- },
530
- {
531
- "__schema": "VariableLikeSchema",
532
- "location": {
533
- "filePath": "babel.main.runtime.ts",
534
- "line": 25,
535
- "character": 3
536
- },
537
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
538
- "name": "runtime",
539
- "type": {
540
- "__schema": "InferenceTypeSchema",
541
- "location": {
542
- "filePath": "babel.main.runtime.ts",
543
- "line": 25,
544
- "character": 3
545
- },
546
- "type": "RuntimeDefinition"
547
- },
548
- "isOptional": true,
549
- "defaultValue": "MainRuntime"
550
- },
551
- {
552
- "__schema": "VariableLikeSchema",
553
- "location": {
554
- "filePath": "babel.main.runtime.ts",
555
- "line": 26,
556
- "character": 3
557
- },
558
- "signature": "(property) BabelMain.dependencies: Aspect[]",
559
- "name": "dependencies",
560
- "type": {
561
- "__schema": "InferenceTypeSchema",
562
- "location": {
563
- "filePath": "babel.main.runtime.ts",
564
- "line": 26,
565
- "character": 3
566
- },
567
- "type": "Aspect[]"
568
- },
569
- "isOptional": true,
570
- "defaultValue": "[LoggerAspect, CompilerAspect]"
571
- },
572
- {
573
- "__schema": "FunctionLikeSchema",
574
- "location": {
575
- "filePath": "babel.main.runtime.ts",
576
- "line": 28,
577
- "character": 3
578
- },
579
- "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
580
- "name": "provider",
581
- "params": [
582
- {
583
- "__schema": "ParameterSchema",
584
- "location": {
585
- "filePath": "babel.main.runtime.ts",
586
- "line": 28,
587
- "character": 25
588
- },
589
- "name": "[ loggerExt, compiler ]",
590
- "type": {
591
- "__schema": "TupleTypeSchema",
592
- "location": {
593
- "filePath": "babel.main.runtime.ts",
594
- "line": 28,
595
- "character": 48
596
- },
597
- "elements": [
598
- {
599
- "__schema": "TypeRefSchema",
600
- "location": {
601
- "filePath": "babel.main.runtime.ts",
602
- "line": 28,
603
- "character": 49
604
- },
605
- "name": "LoggerMain"
606
- },
607
- {
608
- "__schema": "TypeRefSchema",
609
- "location": {
610
- "filePath": "babel.main.runtime.ts",
611
- "line": 28,
612
- "character": 61
613
- },
614
- "name": "CompilerMain"
615
- }
616
- ]
617
- },
618
- "isOptional": false,
619
- "isSpread": false
620
- }
621
- ],
622
- "returnType": {
623
- "__schema": "InferenceTypeSchema",
624
- "location": {
625
- "filePath": "babel.main.runtime.ts",
626
- "line": 28,
627
- "character": 3
628
- },
629
- "type": "Promise<BabelMain>"
630
- },
631
- "modifiers": [
632
- "static",
633
- "async"
634
- ]
635
- }
636
- ],
637
- "extendsNodes": [],
638
- "implementNodes": []
639
- }
640
- ],
641
- "internals": [
642
- {
643
- "__schema": "UnImplementedSchema",
644
- "location": {
645
- "filePath": "babel.main.runtime.ts",
646
- "line": 34,
647
- "character": 1
648
- },
649
- "name": "BabelAspect.addRuntime(BabelMain);",
650
- "type": "ExpressionStatement"
651
- }
652
- ]
653
- },
654
- {
655
- "__schema": "ModuleSchema",
656
- "location": {
657
- "filePath": "babel.aspect.ts",
658
- "line": 1,
659
- "character": 1
660
- },
661
- "exports": [
662
- {
663
- "__schema": "VariableLikeSchema",
664
- "location": {
665
- "filePath": "babel.aspect.ts",
666
- "line": 3,
667
- "character": 14
668
- },
669
- "signature": "const BabelAspect: Aspect",
670
- "name": "BabelAspect",
671
- "type": {
672
- "__schema": "TypeRefSchema",
673
- "location": {
674
- "filePath": "babel.aspect.ts",
675
- "line": 3,
676
- "character": 14
677
- },
678
- "name": "Aspect",
679
- "componentId": {
680
- "scope": "teambit.harmony",
681
- "name": "harmony",
682
- "version": "0.4.6"
683
- }
684
- },
685
- "isOptional": false,
686
- "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
687
- }
688
- ],
689
- "internals": []
690
- }
691
- ],
692
- "componentId": {
693
- "scope": "teambit.compilation",
694
- "name": "babel",
695
- "version": "1.0.510"
696
- },
697
- "taggedModuleExports": []
698
- }