@teambit/babel 1.0.187 → 1.0.188

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