@teambit/babel 1.0.257 → 1.0.258

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <testsuites tests="0" failures="0" errors="0" skipped="0">
3
- <testsuite name="teambit.compilation/babel@1.0.257" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/babel@1.0.258" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={15169:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=b,a(o(41594));var r=o(5016),i=["components"];function a(e){return e&&e.__esModule?e:{default:e}}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(this,arguments)}function l(e,t){if(null==e)return{};var o,n,r=s(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function s(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}a.__bit_component=n,p.__bit_component=n,l.__bit_component=n,s.__bit_component=n;var c={},m="wrapper";function b(e){var t=e.components,o=l(e,i);return(0,r.mdx)(m,p({},c,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"This compiler utilizes the programmatic API of Babel to transpile files. See the compiler-options.ts for more data how to pass Babel options to the compiler."),(0,r.mdx)("p",null,"Note that to isolate the components from different Babel config files on the machine, the following two props are set to false (if they weren't passed in the options): ",(0,r.mdx)("inlineCode",{parentName:"p"},"configFile")," and ",(0,r.mdx)("inlineCode",{parentName:"p"},"babelrc"),"."),(0,r.mdx)("h2",null,"FAQ"),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"Q"),": I'm getting an error about missing plugins."),(0,r.mdx)("p",null,(0,r.mdx)("em",{parentName:"p"},"A"),": make sure that workspace.jsonc has the plugins and that you ran ",(0,r.mdx)("inlineCode",{parentName:"p"},"bit install"),".\nExample of the workspace.jsonc settings:"),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'"my-babel-env": {\n "teambit.bit/aspect": {},\n "teambit.bit/dependency-resolver": {\n "policy": {\n "dependencies": {\n "@babel/core": "7.11.6",\n "@babel/preset-react": "7.22.15",\n "@babel/preset-env": "7.22.15",\n "@babel/preset-typescript": "7.22.15",\n "@babel/plugin-transform-class-properties": "7.22.5"\n }\n }\n }\n },\n')),(0,r.mdx)("ol",{start:2},(0,r.mdx)("li",{parentName:"ol"},"You're not using the plugin.\nThe reason for the error is that Babel searches for config files in different directories. To disable this, add the following to the config you pass to the compiler:")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre"},'{\n ...\n "babelrc": false,\n "configFile": false,\n}\n')),(0,r.mdx)("p",null,"this takes care of both .babelrc and babel.config.json."))}b.__bit_component=n,b.isMDXComponent=!0},44748:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(15169));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/babel@0.0.168",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/babel",exported:!0}},13469:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.257",homepage:"https://bit.cloud/teambit/compilation/babel",exported:!0};function r(){const e=i(o(41594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const a=()=>r().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},r().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/babel.svg"}));a.__bit_component=n,t.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{o.r(n),o.d(n,{compositions:()=>b,compositions_metadata:()=>u,overview:()=>d});var e={};o.r(e),o.d(e,{default:()=>m});var t=o(13469),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(44748),p=["components"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},l.apply(this,arguments)}var s={},c="wrapper";function m(e){var t=e.components,o=function(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,p);return(0,r.mdx)(c,l({},s,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)(i.MDXScopeProvider,{components:{Babel:a.n},mdxType:"MDXScopeProvider"},(0,r.mdx)(a.n,{mdxType:"Babel"})))}m.isMDXComponent=!0;const b=[t],d=[e],u={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.compilation/babel-preview"]=t():e["teambit.compilation/babel-preview"]=t()}(self,(()=>(()=>{"use strict";var e={88102:(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},26651:(e,t,o)=>{Object.defineProperty(t,"n",{enumerable:!0,get:function(){return n.default}});var n=r(o(88102));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}},76245:(e,t,o)=>{var n={id:"teambit.compilation/babel@1.0.258",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(76245),r=(o(41594),o(5016));const i=TeambitMdxUiMdxScopeContext;var a=o(26651),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})()));
@@ -14,332 +14,342 @@
14
14
  },
15
15
  "exports": [
16
16
  {
17
- "__schema": "TypeRefSchema",
17
+ "__schema": "ExportSchema",
18
18
  "location": {
19
19
  "filePath": "index.ts",
20
20
  "line": 1,
21
21
  "character": 10
22
22
  },
23
23
  "name": "BabelCompiler",
24
- "componentId": {
25
- "scope": "teambit.compilation",
26
- "name": "babel-compiler",
27
- "version": "1.1.8"
24
+ "exportNode": {
25
+ "__schema": "TypeRefSchema",
26
+ "location": {
27
+ "filePath": "index.ts",
28
+ "line": 1,
29
+ "character": 10
30
+ },
31
+ "name": "BabelCompiler",
32
+ "componentId": {
33
+ "scope": "teambit.compilation",
34
+ "name": "babel-compiler",
35
+ "version": "1.1.8"
36
+ }
28
37
  }
29
38
  },
30
39
  {
31
- "__schema": "ClassSchema",
40
+ "__schema": "ExportSchema",
32
41
  "location": {
33
- "filePath": "babel.main.runtime.ts",
34
- "line": 9,
35
- "character": 1
42
+ "filePath": "index.ts",
43
+ "line": 2,
44
+ "character": 15
36
45
  },
37
- "signature": "class BabelMain",
38
46
  "name": "BabelMain",
39
- "members": [
40
- {
41
- "__schema": "ConstructorSchema",
42
- "location": {
43
- "filePath": "babel.main.runtime.ts",
44
- "line": 10,
45
- "character": 3
46
- },
47
- "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
48
- "name": "constructor",
49
- "params": [
50
- {
51
- "__schema": "ParameterSchema",
52
- "location": {
53
- "filePath": "babel.main.runtime.ts",
54
- "line": 10,
55
- "character": 15
56
- },
57
- "name": "logger",
58
- "type": {
59
- "__schema": "TypeRefSchema",
47
+ "exportNode": {
48
+ "__schema": "ClassSchema",
49
+ "location": {
50
+ "filePath": "babel.main.runtime.ts",
51
+ "line": 9,
52
+ "character": 1
53
+ },
54
+ "signature": "class BabelMain",
55
+ "name": "BabelMain",
56
+ "members": [
57
+ {
58
+ "__schema": "ConstructorSchema",
59
+ "location": {
60
+ "filePath": "babel.main.runtime.ts",
61
+ "line": 10,
62
+ "character": 3
63
+ },
64
+ "signature": "constructor BabelMain(logger: Logger, compiler: CompilerMain): BabelMain",
65
+ "name": "constructor",
66
+ "params": [
67
+ {
68
+ "__schema": "ParameterSchema",
60
69
  "location": {
61
70
  "filePath": "babel.main.runtime.ts",
62
71
  "line": 10,
63
- "character": 31
72
+ "character": 15
64
73
  },
65
- "name": "Logger",
66
- "componentId": {
67
- "scope": "teambit.harmony",
68
- "name": "logger"
69
- }
70
- },
71
- "isOptional": false,
72
- "isSpread": false
73
- },
74
- {
75
- "__schema": "ParameterSchema",
76
- "location": {
77
- "filePath": "babel.main.runtime.ts",
78
- "line": 10,
79
- "character": 39
74
+ "name": "logger",
75
+ "type": {
76
+ "__schema": "TypeRefSchema",
77
+ "location": {
78
+ "filePath": "babel.main.runtime.ts",
79
+ "line": 10,
80
+ "character": 31
81
+ },
82
+ "name": "Logger"
83
+ },
84
+ "isOptional": false,
85
+ "isSpread": false
80
86
  },
81
- "name": "compiler",
82
- "type": {
83
- "__schema": "TypeRefSchema",
87
+ {
88
+ "__schema": "ParameterSchema",
84
89
  "location": {
85
90
  "filePath": "babel.main.runtime.ts",
86
91
  "line": 10,
87
- "character": 57
92
+ "character": 39
93
+ },
94
+ "name": "compiler",
95
+ "type": {
96
+ "__schema": "TypeRefSchema",
97
+ "location": {
98
+ "filePath": "babel.main.runtime.ts",
99
+ "line": 10,
100
+ "character": 57
101
+ },
102
+ "name": "CompilerMain"
88
103
  },
89
- "name": "CompilerMain",
90
- "componentId": {
91
- "scope": "teambit.compilation",
92
- "name": "compiler"
93
- }
104
+ "isOptional": false,
105
+ "isSpread": false
106
+ }
107
+ ],
108
+ "returnType": {
109
+ "__schema": "ThisTypeSchema",
110
+ "location": {
111
+ "filePath": "babel.main.runtime.ts",
112
+ "line": 9,
113
+ "character": 1
94
114
  },
95
- "isOptional": false,
96
- "isSpread": false
97
- }
98
- ],
99
- "returnType": {
100
- "__schema": "ThisTypeSchema",
115
+ "name": "BabelMain"
116
+ },
117
+ "modifiers": []
118
+ },
119
+ {
120
+ "__schema": "FunctionLikeSchema",
101
121
  "location": {
102
122
  "filePath": "babel.main.runtime.ts",
103
- "line": 9,
104
- "character": 1
123
+ "line": 12,
124
+ "character": 3
105
125
  },
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",
126
+ "signature": "(method) BabelMain.createCompiler(options: BabelCompilerOptions, babelModule?: typeof babel): BabelCompiler",
127
+ "name": "createCompiler",
128
+ "params": [
129
+ {
130
+ "__schema": "ParameterSchema",
130
131
  "location": {
131
132
  "filePath": "babel.main.runtime.ts",
132
133
  "line": 12,
133
- "character": 27
134
+ "character": 18
134
135
  },
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
136
+ "name": "options",
137
+ "type": {
138
+ "__schema": "TypeRefSchema",
139
+ "location": {
140
+ "filePath": "babel.main.runtime.ts",
141
+ "line": 12,
142
+ "character": 27
143
+ },
144
+ "name": "BabelCompilerOptions"
145
+ },
146
+ "isOptional": false,
147
+ "isSpread": false
147
148
  },
148
- "name": "babelModule",
149
- "type": {
150
- "__schema": "InferenceTypeSchema",
149
+ {
150
+ "__schema": "ParameterSchema",
151
151
  "location": {
152
152
  "filePath": "babel.main.runtime.ts",
153
153
  "line": 12,
154
154
  "character": 49
155
155
  },
156
- "type": "typeof babel"
156
+ "name": "babelModule",
157
+ "type": {
158
+ "__schema": "InferenceTypeSchema",
159
+ "location": {
160
+ "filePath": "babel.main.runtime.ts",
161
+ "line": 12,
162
+ "character": 49
163
+ },
164
+ "type": "typeof babel"
165
+ },
166
+ "isOptional": true,
167
+ "defaultValue": "babel",
168
+ "isSpread": false
169
+ }
170
+ ],
171
+ "returnType": {
172
+ "__schema": "TypeRefSchema",
173
+ "location": {
174
+ "filePath": "babel.main.runtime.ts",
175
+ "line": 12,
176
+ "character": 3
157
177
  },
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
178
+ "name": "BabelCompiler",
179
+ "componentId": {
180
+ "scope": "teambit.compilation",
181
+ "name": "babel-compiler",
182
+ "version": "1.1.8"
183
+ }
169
184
  },
170
- "name": "BabelCompiler",
171
- "componentId": {
172
- "scope": "teambit.compilation",
173
- "name": "babel-compiler",
174
- "version": "1.1.8"
175
- }
176
- },
177
- "modifiers": []
178
- },
179
- {
180
- "__schema": "FunctionLikeSchema",
181
- "location": {
182
- "filePath": "babel.main.runtime.ts",
183
- "line": 16,
184
- "character": 3
185
+ "modifiers": []
185
186
  },
186
- "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
187
- "name": "getPackageJsonProps",
188
- "params": [],
189
- "returnType": {
190
- "__schema": "InferenceTypeSchema",
187
+ {
188
+ "__schema": "FunctionLikeSchema",
191
189
  "location": {
192
190
  "filePath": "babel.main.runtime.ts",
193
191
  "line": 16,
194
192
  "character": 3
195
193
  },
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
194
+ "signature": "(method) BabelMain.getPackageJsonProps(): {\n main: string;\n}",
195
+ "name": "getPackageJsonProps",
196
+ "params": [],
197
+ "returnType": {
198
+ "__schema": "InferenceTypeSchema",
199
+ "location": {
200
+ "filePath": "babel.main.runtime.ts",
201
+ "line": 16,
202
+ "character": 3
203
+ },
204
+ "type": "{\n main: string;\n}"
205
+ },
206
+ "modifiers": []
206
207
  },
207
- "signature": "(property) BabelMain.runtime: RuntimeDefinition",
208
- "name": "runtime",
209
- "type": {
210
- "__schema": "InferenceTypeSchema",
208
+ {
209
+ "__schema": "VariableLikeSchema",
211
210
  "location": {
212
211
  "filePath": "babel.main.runtime.ts",
213
212
  "line": 22,
214
213
  "character": 3
215
214
  },
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
215
+ "signature": "(property) BabelMain.runtime: RuntimeDefinition",
216
+ "name": "runtime",
217
+ "type": {
218
+ "__schema": "InferenceTypeSchema",
219
+ "location": {
220
+ "filePath": "babel.main.runtime.ts",
221
+ "line": 22,
222
+ "character": 3
223
+ },
224
+ "type": "RuntimeDefinition"
225
+ },
226
+ "isOptional": true,
227
+ "defaultValue": "MainRuntime"
227
228
  },
228
- "signature": "(property) BabelMain.dependencies: Aspect[]",
229
- "name": "dependencies",
230
- "type": {
231
- "__schema": "InferenceTypeSchema",
229
+ {
230
+ "__schema": "VariableLikeSchema",
232
231
  "location": {
233
232
  "filePath": "babel.main.runtime.ts",
234
233
  "line": 23,
235
234
  "character": 3
236
235
  },
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",
236
+ "signature": "(property) BabelMain.dependencies: Aspect[]",
237
+ "name": "dependencies",
238
+ "type": {
239
+ "__schema": "InferenceTypeSchema",
254
240
  "location": {
255
241
  "filePath": "babel.main.runtime.ts",
256
- "line": 25,
257
- "character": 25
242
+ "line": 23,
243
+ "character": 3
258
244
  },
259
- "name": "[ loggerExt, compiler ]",
260
- "type": {
261
- "__schema": "TupleTypeSchema",
245
+ "type": "Aspect[]"
246
+ },
247
+ "isOptional": true,
248
+ "defaultValue": "[LoggerAspect, CompilerAspect]"
249
+ },
250
+ {
251
+ "__schema": "FunctionLikeSchema",
252
+ "location": {
253
+ "filePath": "babel.main.runtime.ts",
254
+ "line": 25,
255
+ "character": 3
256
+ },
257
+ "signature": "(method) BabelMain.provider([loggerExt, compiler]: [LoggerMain, CompilerMain]): Promise<BabelMain>",
258
+ "name": "provider",
259
+ "params": [
260
+ {
261
+ "__schema": "ParameterSchema",
262
262
  "location": {
263
263
  "filePath": "babel.main.runtime.ts",
264
264
  "line": 25,
265
- "character": 48
265
+ "character": 25
266
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
- }
267
+ "name": "[ loggerExt, compiler ]",
268
+ "type": {
269
+ "__schema": "TupleTypeSchema",
270
+ "location": {
271
+ "filePath": "babel.main.runtime.ts",
272
+ "line": 25,
273
+ "character": 48
280
274
  },
281
- {
282
- "__schema": "TypeRefSchema",
283
- "location": {
284
- "filePath": "babel.main.runtime.ts",
285
- "line": 25,
286
- "character": 61
275
+ "elements": [
276
+ {
277
+ "__schema": "TypeRefSchema",
278
+ "location": {
279
+ "filePath": "babel.main.runtime.ts",
280
+ "line": 25,
281
+ "character": 49
282
+ },
283
+ "name": "LoggerMain"
287
284
  },
288
- "name": "CompilerMain",
289
- "componentId": {
290
- "scope": "teambit.compilation",
291
- "name": "compiler"
285
+ {
286
+ "__schema": "TypeRefSchema",
287
+ "location": {
288
+ "filePath": "babel.main.runtime.ts",
289
+ "line": 25,
290
+ "character": 61
291
+ },
292
+ "name": "CompilerMain"
292
293
  }
293
- }
294
- ]
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
295
306
  },
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
307
+ "type": "Promise<BabelMain>"
306
308
  },
307
- "type": "Promise<BabelMain>"
308
- },
309
- "modifiers": [
310
- "static",
311
- "async"
312
- ]
313
- }
314
- ],
315
- "extendsNodes": [],
316
- "implementNodes": []
309
+ "modifiers": [
310
+ "static",
311
+ "async"
312
+ ]
313
+ }
314
+ ],
315
+ "extendsNodes": [],
316
+ "implementNodes": []
317
+ }
317
318
  },
318
319
  {
319
- "__schema": "VariableLikeSchema",
320
+ "__schema": "ExportSchema",
320
321
  "location": {
321
- "filePath": "babel.aspect.ts",
322
+ "filePath": "index.ts",
322
323
  "line": 3,
323
- "character": 14
324
+ "character": 10
324
325
  },
325
- "signature": "const BabelAspect: Aspect",
326
326
  "name": "BabelAspect",
327
- "type": {
328
- "__schema": "TypeRefSchema",
327
+ "exportNode": {
328
+ "__schema": "VariableLikeSchema",
329
329
  "location": {
330
330
  "filePath": "babel.aspect.ts",
331
331
  "line": 3,
332
332
  "character": 14
333
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})"
334
+ "signature": "const BabelAspect: Aspect",
335
+ "name": "BabelAspect",
336
+ "type": {
337
+ "__schema": "TypeRefSchema",
338
+ "location": {
339
+ "filePath": "babel.aspect.ts",
340
+ "line": 3,
341
+ "character": 14
342
+ },
343
+ "name": "Aspect",
344
+ "componentId": {
345
+ "scope": "teambit.harmony",
346
+ "name": "harmony",
347
+ "version": "0.4.6"
348
+ }
349
+ },
350
+ "isOptional": false,
351
+ "defaultValue": "Aspect.create({\n id: 'teambit.compilation/babel',\n})"
352
+ }
343
353
  }
344
354
  ],
345
355
  "internals": []
@@ -388,11 +398,7 @@
388
398
  "line": 10,
389
399
  "character": 31
390
400
  },
391
- "name": "Logger",
392
- "componentId": {
393
- "scope": "teambit.harmony",
394
- "name": "logger"
395
- }
401
+ "name": "Logger"
396
402
  },
397
403
  "isOptional": false,
398
404
  "isSpread": false
@@ -412,11 +418,7 @@
412
418
  "line": 10,
413
419
  "character": 57
414
420
  },
415
- "name": "CompilerMain",
416
- "componentId": {
417
- "scope": "teambit.compilation",
418
- "name": "compiler"
419
- }
421
+ "name": "CompilerMain"
420
422
  },
421
423
  "isOptional": false,
422
424
  "isSpread": false
@@ -458,8 +460,7 @@
458
460
  "line": 12,
459
461
  "character": 27
460
462
  },
461
- "name": "BabelCompilerOptions",
462
- "internalFilePath": "compiler-options.ts"
463
+ "name": "BabelCompilerOptions"
463
464
  },
464
465
  "isOptional": false,
465
466
  "isSpread": false
@@ -598,11 +599,7 @@
598
599
  "line": 25,
599
600
  "character": 49
600
601
  },
601
- "name": "LoggerMain",
602
- "componentId": {
603
- "scope": "teambit.harmony",
604
- "name": "logger"
605
- }
602
+ "name": "LoggerMain"
606
603
  },
607
604
  {
608
605
  "__schema": "TypeRefSchema",
@@ -611,11 +608,7 @@
611
608
  "line": 25,
612
609
  "character": 61
613
610
  },
614
- "name": "CompilerMain",
615
- "componentId": {
616
- "scope": "teambit.compilation",
617
- "name": "compiler"
618
- }
611
+ "name": "CompilerMain"
619
612
  }
620
613
  ]
621
614
  },
@@ -696,7 +689,7 @@
696
689
  "componentId": {
697
690
  "scope": "teambit.compilation",
698
691
  "name": "babel",
699
- "version": "1.0.257"
692
+ "version": "1.0.258"
700
693
  },
701
694
  "taggedModuleExports": []
702
695
  }
@@ -0,0 +1,7 @@
1
+ import * as compositions_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.compilation_babel@1.0.258/dist/babel.composition.js';
2
+ import * as overview_0 from '/Users/giladshoham/Library/Caches/Bit/capsules/root/b5ea46ec3/teambit.compilation_babel@1.0.258/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,19 +1,19 @@
1
1
  {
2
2
  "name": "@teambit/babel",
3
- "version": "1.0.257",
3
+ "version": "1.0.258",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/babel",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "babel",
9
- "version": "1.0.257"
9
+ "version": "1.0.258"
10
10
  },
11
11
  "dependencies": {
12
12
  "@babel/core": "7.19.6",
13
13
  "@teambit/harmony": "0.4.6",
14
14
  "@teambit/compilation.babel-compiler": "1.1.8",
15
15
  "@teambit/cli": "0.0.862",
16
- "@teambit/compiler": "1.0.257",
16
+ "@teambit/compiler": "1.0.258",
17
17
  "@teambit/logger": "0.0.955"
18
18
  },
19
19
  "devDependencies": {
@@ -1,7 +0,0 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.257/dist/babel.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_babel@1.0.257/dist/babel.docs.mdx';
3
-
4
- export const compositions = [compositions_0];
5
- export const overview = [overview_0];
6
-
7
- export const compositions_metadata = {"compositions":[{"displayName":"Logo","identifier":"Logo"}]};