@teambit/compiler 1.0.202 → 1.0.204

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/compiler@1.0.202" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/compiler@1.0.204" tests="0" failures="0" errors="0" skipped="0"/>
4
4
  </testsuites>
@@ -1 +1 @@
1
- !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.compilation/compiler-preview"]=n():e["teambit.compilation/compiler-preview"]=n()}(self,(()=>(()=>{"use strict";var e={73077:(e,n,t)=>{var o={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,p(t(41594));var i=t(5016),r=t(65682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}function l(e,n){if(null==e)return{};var t,o,i=d(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}p.__bit_component=o,m.__bit_component=o,l.__bit_component=o,d.__bit_component=o;var c={},s="wrapper";function u(e){var n=e.components,t=l(e,a);return(0,i.mdx)(s,m({},c,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,i.mdx)("h1",null,"Compiler overview"),(0,i.mdx)("p",null,"The Compiler aspect provides a single interface for Component compilation, ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during development")," and ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during build"),".\nIt enables you to use the same commands and APIs to compile any Component, regardless of the specific compiler it uses."),(0,i.mdx)("div",{className:"admonition admonition-info alert alert--info"},(0,i.mdx)("div",{parentName:"div",className:"admonition-heading"},(0,i.mdx)("h5",{parentName:"div"},(0,i.mdx)("span",{parentName:"h5",className:"admonition-icon"},(0,i.mdx)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,i.mdx)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),(0,i.mdx)("div",{parentName:"div",className:"admonition-content"},(0,i.mdx)("p",{parentName:"div"},"The specific compiler used by a Component (",(0,i.mdx)("a",{parentName:"p",href:"/"},"Babel"),", ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript"),", and so on) is set by the Component's Env."))),(0,i.mdx)("h2",null,"Compiling during development"),(0,i.mdx)("p",null,"Run the following to compile all your Workspace Components:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit compile\n")),(0,i.mdx)("p",null,"The following output lists the compilation results in a single format:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"}," STATUS COMPONENT ID\n✔ SUCCESS apps/bit-dev\n✔ SUCCESS blocks/component/architecture-breakdown\n✔ SUCCESS blocks/footer\n✔ SUCCESS blocks/header\n✔ SUCCESS buttons/button\n✔ SUCCESS content/adding-components\n")),(0,i.mdx)("p",null,"To 'watch' Components for changes, and to auto-compile modified Components, run:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit watch\n")),(0,i.mdx)("p",null,"The compiled code is written into each Component's corresponding package, in the ",(0,i.mdx)("a",{parentName:"p",href:"/dependencies/node-modules"},(0,i.mdx)("inlineCode",{parentName:"a"},"node_modules")," directory")," of your workspace.\nFor example, the compiled code for ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.scope/ui/text")," will be found in the ",(0,i.mdx)("inlineCode",{parentName:"p"},"./node_modules/@company/scope.ui.text/dist")," directory (inside your workspace)."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during development'"),"."),(0,i.mdx)("h2",null,"Compiling during build"),(0,i.mdx)("p",null,"Run the following to compile Components as part of the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"build pipeline")," (which prepares Components for distribution):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,i.mdx)("p",null,"The output to the terminal details the specific compilers being used, as well as the Envs that use them:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'...\n✔ env "teambit.harmony/aspect", task "teambit.compilation/compiler:BabelCompiler (compile components for artifact dist)" has completed successfully in 363ms\n✔ env "teambit.react/react", task "teambit.compilation/compiler:TSCompiler (compile components for artifact dist)" has completed successfully in 1s\n✔ env "teambit.mdx/mdx", task "teambit.compilation/compiler:MDXCompiler (compile components)" has completed successfully in 879ms\n...\nthe build has been completed. total: 19 tasks\n')),(0,i.mdx)("p",null,"The compiled code is written into the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's Capsule"),". Run ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit snap"))," or ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit tag"))," to execute the build pipeline (as well as other pipelines), and have the compiled code persisted in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component version"),", and included in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's package"),"."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during build'"),"."),(0,i.mdx)("h2",null,"Compilation strategies and standards"),(0,i.mdx)("p",null,"The Compiler aspect does not set specific compilation strategies as these are defined by the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"specific compilers")," themselves (and are often configurable by the Envs that use them)."),(0,i.mdx)("p",null,"However, all official Bit compilers are configured to favor dev experience when compiling during development, and to favor runtime performance and code universality, when compiling for distribution (during build)."),(0,i.mdx)("p",null,"For example, Bit's ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript compiler")," performs type-checking when compiling during build but skips it when compiling during development.\nThis enables faster compilation and better dev experience."),(0,i.mdx)("p",null,"To examine a Component's specific compiler config, run the following:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get COMPONENT_ID\n")),(0,i.mdx)("p",null,"For example:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get company.demo/ui/card\n")),(0,i.mdx)("p",null,"The output details the Component's env config which includes the compiler config:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'Environment: teambit.react/react\n...\nteambit.compilation/compiler\n\nconfigured compiler: teambit.typescript/typescript (TypeScript @ 4.4.2)\ncompiler config:\n{\n "compilerOptions": {\n "lib": [\n "es2019",\n "DOM",\n "ES6",\n "DOM.Iterable"\n ],\n "target": "es2015",\n "module": "commonjs",\n "jsx": "react",\n "declaration": true,\n "sourceMap": true,\n "skipLibCheck": true,\n "moduleResolution": "node",\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "outDir": "dist"\n },\n "exclude": [\n "dist"\n ]\n}\n\n')),(0,i.mdx)("h2",null,"Setting a Component with a specific compiler"),(0,i.mdx)("p",null,"Specific compilers are applied on Components via the Components' Envs. For example, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.demo/ui/card")," Component examined earlier, is applied with\nthe ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript")," compiler by its Env, the React Env."),(0,i.mdx)("p",null,"To learn how to use a specific compiler, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Using compilers'"),".")))}u.__bit_component=o,u.isMDXComponent=!0},39379:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return o.default}});var o=i(t(73077));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0}},21426:(e,n,t)=>{var o={id:"teambit.compilation/compiler@1.0.202",homepage:"https://bit.cloud/teambit/compilation/compiler",exported:!0};function i(){const e=r(t(41594));return i=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,i.__bit_component=o,r.__bit_component=o;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compiler.svg"}));a.__bit_component=o,n.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{t.r(o),t.d(o,{compositions:()=>s,compositions_metadata:()=>f,overview:()=>u});var e={};t.r(e),t.d(e,{default:()=>c});var n=t(21426),i=(t(41594),t(5016)),r=t(65682),a=t(39379),p=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}var l={},d="wrapper";function c(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,i=function(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,p);return(0,i.mdx)(d,m({},l,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{CompilerOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,i.mdx)(a.Ay,{mdxType:"CompilerOverview"})))}c.isMDXComponent=!0;const s=[n],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),o})()));
1
+ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["teambit.compilation/compiler-preview"]=n():e["teambit.compilation/compiler-preview"]=n()}(self,(()=>(()=>{"use strict";var e={73077:(e,n,t)=>{var o={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0};Object.defineProperty(n,"__esModule",{value:!0}),n.default=u,p(t(41594));var i=t(5016),r=t(65682),a=["components"];function p(e){return e&&e.__esModule?e:{default:e}}function m(){return m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}function l(e,n){if(null==e)return{};var t,o,i=d(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function d(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}p.__bit_component=o,m.__bit_component=o,l.__bit_component=o,d.__bit_component=o;var c={},s="wrapper";function u(e){var n=e.components,t=l(e,a);return(0,i.mdx)(s,m({},c,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,i.mdx)("h1",null,"Compiler overview"),(0,i.mdx)("p",null,"The Compiler aspect provides a single interface for Component compilation, ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during development")," and ",(0,i.mdx)("a",{parentName:"p",href:"/"},"during build"),".\nIt enables you to use the same commands and APIs to compile any Component, regardless of the specific compiler it uses."),(0,i.mdx)("div",{className:"admonition admonition-info alert alert--info"},(0,i.mdx)("div",{parentName:"div",className:"admonition-heading"},(0,i.mdx)("h5",{parentName:"div"},(0,i.mdx)("span",{parentName:"h5",className:"admonition-icon"},(0,i.mdx)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,i.mdx)("path",{parentName:"svg",fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"}))),"info")),(0,i.mdx)("div",{parentName:"div",className:"admonition-content"},(0,i.mdx)("p",{parentName:"div"},"The specific compiler used by a Component (",(0,i.mdx)("a",{parentName:"p",href:"/"},"Babel"),", ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript"),", and so on) is set by the Component's Env."))),(0,i.mdx)("h2",null,"Compiling during development"),(0,i.mdx)("p",null,"Run the following to compile all your Workspace Components:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit compile\n")),(0,i.mdx)("p",null,"The following output lists the compilation results in a single format:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"}," STATUS COMPONENT ID\n✔ SUCCESS apps/bit-dev\n✔ SUCCESS blocks/component/architecture-breakdown\n✔ SUCCESS blocks/footer\n✔ SUCCESS blocks/header\n✔ SUCCESS buttons/button\n✔ SUCCESS content/adding-components\n")),(0,i.mdx)("p",null,"To 'watch' Components for changes, and to auto-compile modified Components, run:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit watch\n")),(0,i.mdx)("p",null,"The compiled code is written into each Component's corresponding package, in the ",(0,i.mdx)("a",{parentName:"p",href:"/dependencies/node-modules"},(0,i.mdx)("inlineCode",{parentName:"a"},"node_modules")," directory")," of your workspace.\nFor example, the compiled code for ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.scope/ui/text")," will be found in the ",(0,i.mdx)("inlineCode",{parentName:"p"},"./node_modules/@company/scope.ui.text/dist")," directory (inside your workspace)."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during development'"),"."),(0,i.mdx)("h2",null,"Compiling during build"),(0,i.mdx)("p",null,"Run the following to compile Components as part of the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"build pipeline")," (which prepares Components for distribution):"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},"bit build\n")),(0,i.mdx)("p",null,"The output to the terminal details the specific compilers being used, as well as the Envs that use them:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'...\n✔ env "teambit.harmony/aspect", task "teambit.compilation/compiler:BabelCompiler (compile components for artifact dist)" has completed successfully in 363ms\n✔ env "teambit.react/react", task "teambit.compilation/compiler:TSCompiler (compile components for artifact dist)" has completed successfully in 1s\n✔ env "teambit.mdx/mdx", task "teambit.compilation/compiler:MDXCompiler (compile components)" has completed successfully in 879ms\n...\nthe build has been completed. total: 19 tasks\n')),(0,i.mdx)("p",null,"The compiled code is written into the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's Capsule"),". Run ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit snap"))," or ",(0,i.mdx)("a",{parentName:"p",href:"/"},(0,i.mdx)("inlineCode",{parentName:"a"},"bit tag"))," to execute the build pipeline (as well as other pipelines), and have the compiled code persisted in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component version"),", and included in the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"Component's package"),"."),(0,i.mdx)("p",null,"To learn more about compilation in the Workspace, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Compiling during build'"),"."),(0,i.mdx)("h2",null,"Compilation strategies and standards"),(0,i.mdx)("p",null,"The Compiler aspect does not set specific compilation strategies as these are defined by the ",(0,i.mdx)("a",{parentName:"p",href:"/"},"specific compilers")," themselves (and are often configurable by the Envs that use them)."),(0,i.mdx)("p",null,"However, all official Bit compilers are configured to favor dev experience when compiling during development, and to favor runtime performance and code universality, when compiling for distribution (during build)."),(0,i.mdx)("p",null,"For example, Bit's ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript compiler")," performs type-checking when compiling during build but skips it when compiling during development.\nThis enables faster compilation and better dev experience."),(0,i.mdx)("p",null,"To examine a Component's specific compiler config, run the following:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get COMPONENT_ID\n")),(0,i.mdx)("p",null,"For example:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre"},"bit env get company.demo/ui/card\n")),(0,i.mdx)("p",null,"The output details the Component's env config which includes the compiler config:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-bash"},'Environment: teambit.react/react\n...\nteambit.compilation/compiler\n\nconfigured compiler: teambit.typescript/typescript (TypeScript @ 4.4.2)\ncompiler config:\n{\n "compilerOptions": {\n "lib": [\n "es2019",\n "DOM",\n "ES6",\n "DOM.Iterable"\n ],\n "target": "es2015",\n "module": "commonjs",\n "jsx": "react",\n "declaration": true,\n "sourceMap": true,\n "skipLibCheck": true,\n "moduleResolution": "node",\n "esModuleInterop": true,\n "resolveJsonModule": true,\n "outDir": "dist"\n },\n "exclude": [\n "dist"\n ]\n}\n\n')),(0,i.mdx)("h2",null,"Setting a Component with a specific compiler"),(0,i.mdx)("p",null,"Specific compilers are applied on Components via the Components' Envs. For example, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"company.demo/ui/card")," Component examined earlier, is applied with\nthe ",(0,i.mdx)("a",{parentName:"p",href:"/"},"TypeScript")," compiler by its Env, the React Env."),(0,i.mdx)("p",null,"To learn how to use a specific compiler, see ",(0,i.mdx)("a",{parentName:"p",href:"/"},"'Using compilers'"),".")))}u.__bit_component=o,u.isMDXComponent=!0},39379:(e,n,t)=>{Object.defineProperty(n,"Ay",{enumerable:!0,get:function(){return o.default}});var o=i(t(73077));function i(e){return e&&e.__esModule?e:{default:e}}i.__bit_component={id:"teambit.compilation/content/compiler-overview@1.95.0",homepage:"https://bit.dev/teambit/compilation/content/compiler-overview",exported:!0}},59608:(e,n,t)=>{var o={id:"teambit.compilation/compiler@1.0.204",homepage:"https://bit.cloud/teambit/compilation/compiler",exported:!0};function i(){const e=r(t(41594));return i=function(){return e},e}function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.Logo=void 0,i.__bit_component=o,r.__bit_component=o;const a=()=>i().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},i().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/compiler.svg"}));a.__bit_component=o,n.Logo=a},5016:e=>{e.exports=MdxJsReact},41594:e=>{e.exports=React},65682:e=>{e.exports=TeambitMdxUiMdxScopeContext}},n={};function t(o){var i=n[o];if(void 0!==i)return i.exports;var r=n[o]={exports:{}};return e[o](r,r.exports,t),r.exports}t.d=(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{t.r(o),t.d(o,{compositions:()=>s,compositions_metadata:()=>f,overview:()=>u});var e={};t.r(e),t.d(e,{default:()=>c});var n=t(59608),i=(t(41594),t(5016)),r=t(65682),a=t(39379),p=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},m.apply(this,arguments)}var l={},d="wrapper";function c(e){var n=e.components,t=function(e,n){if(null==e)return{};var t,o,i=function(e,n){if(null==e)return{};var t,o,i={},r=Object.keys(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)t=r[o],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,p);return(0,i.mdx)(d,m({},l,t,{components:n,mdxType:"MDXLayout"}),(0,i.mdx)(r.MDXScopeProvider,{components:{CompilerOverview:a.Ay},mdxType:"MDXScopeProvider"},(0,i.mdx)(a.Ay,{mdxType:"CompilerOverview"})))}c.isMDXComponent=!0;const s=[n],u=[e],f={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),o})()));
@@ -1678,7 +1678,7 @@
1678
1678
  "_legacy": {
1679
1679
  "scope": "teambit.compilation",
1680
1680
  "name": "compiler",
1681
- "version": "1.0.202"
1681
+ "version": "1.0.204"
1682
1682
  },
1683
1683
  "_scope": "teambit.compilation"
1684
1684
  }
@@ -2902,7 +2902,7 @@
2902
2902
  "_legacy": {
2903
2903
  "scope": "teambit.compilation",
2904
2904
  "name": "compiler",
2905
- "version": "1.0.202"
2905
+ "version": "1.0.204"
2906
2906
  },
2907
2907
  "_scope": "teambit.compilation"
2908
2908
  }
@@ -3479,208 +3479,7 @@
3479
3479
  "_legacy": {
3480
3480
  "scope": "teambit.compilation",
3481
3481
  "name": "compiler",
3482
- "version": "1.0.202"
3483
- },
3484
- "_scope": "teambit.compilation"
3485
- }
3486
- }
3487
- }
3488
- ],
3489
- "implementNodes": []
3490
- },
3491
- {
3492
- "__schema": "ClassSchema",
3493
- "location": {
3494
- "filePath": "events/component-compilation-on-done.ts",
3495
- "line": 10,
3496
- "character": 1
3497
- },
3498
- "signature": "class ComponentCompilationOnDoneEvent",
3499
- "name": "ComponentCompilationOnDoneEvent",
3500
- "members": [
3501
- {
3502
- "__schema": "VariableLikeSchema",
3503
- "location": {
3504
- "filePath": "events/component-compilation-on-done.ts",
3505
- "line": 11,
3506
- "character": 3
3507
- },
3508
- "signature": "(property) ComponentCompilationOnDoneEvent.TYPE: \"component-compilation-on-done\"",
3509
- "name": "TYPE",
3510
- "type": {
3511
- "__schema": "InferenceTypeSchema",
3512
- "location": {
3513
- "filePath": "events/component-compilation-on-done.ts",
3514
- "line": 11,
3515
- "character": 3
3516
- },
3517
- "type": "\"component-compilation-on-done\""
3518
- },
3519
- "isOptional": true,
3520
- "defaultValue": "'component-compilation-on-done'"
3521
- },
3522
- {
3523
- "__schema": "ConstructorSchema",
3524
- "location": {
3525
- "filePath": "events/component-compilation-on-done.ts",
3526
- "line": 13,
3527
- "character": 3
3528
- },
3529
- "signature": "constructor ComponentCompilationOnDoneEvent(errors: Array<CompileError>, component: Component, buildResults: string[], timestamp?: number): ComponentCompilationOnDoneEvent",
3530
- "name": "constructor",
3531
- "params": [
3532
- {
3533
- "__schema": "ParameterSchema",
3534
- "location": {
3535
- "filePath": "events/component-compilation-on-done.ts",
3536
- "line": 14,
3537
- "character": 5
3538
- },
3539
- "name": "errors",
3540
- "type": {
3541
- "__schema": "TypeRefSchema",
3542
- "location": {
3543
- "filePath": "events/component-compilation-on-done.ts",
3544
- "line": 14,
3545
- "character": 22
3546
- },
3547
- "name": "Array",
3548
- "typeArgs": [
3549
- {
3550
- "__schema": "TypeRefSchema",
3551
- "location": {
3552
- "filePath": "events/component-compilation-on-done.ts",
3553
- "line": 14,
3554
- "character": 28
3555
- },
3556
- "name": "CompileError",
3557
- "internalFilePath": "workspace-compiler.ts"
3558
- }
3559
- ]
3560
- },
3561
- "isOptional": false,
3562
- "isSpread": false
3563
- },
3564
- {
3565
- "__schema": "ParameterSchema",
3566
- "location": {
3567
- "filePath": "events/component-compilation-on-done.ts",
3568
- "line": 15,
3569
- "character": 5
3570
- },
3571
- "name": "component",
3572
- "type": {
3573
- "__schema": "TypeRefSchema",
3574
- "location": {
3575
- "filePath": "events/component-compilation-on-done.ts",
3576
- "line": 15,
3577
- "character": 25
3578
- },
3579
- "name": "Component",
3580
- "componentId": {
3581
- "scope": "teambit.component",
3582
- "name": "component"
3583
- }
3584
- },
3585
- "isOptional": false,
3586
- "isSpread": false
3587
- },
3588
- {
3589
- "__schema": "ParameterSchema",
3590
- "location": {
3591
- "filePath": "events/component-compilation-on-done.ts",
3592
- "line": 16,
3593
- "character": 5
3594
- },
3595
- "name": "buildResults",
3596
- "type": {
3597
- "__schema": "TypeArraySchema",
3598
- "location": {
3599
- "filePath": "events/component-compilation-on-done.ts",
3600
- "line": 16,
3601
- "character": 28
3602
- },
3603
- "type": {
3604
- "__schema": "KeywordTypeSchema",
3605
- "location": {
3606
- "filePath": "events/component-compilation-on-done.ts",
3607
- "line": 16,
3608
- "character": 28
3609
- },
3610
- "name": "string"
3611
- }
3612
- },
3613
- "isOptional": false,
3614
- "isSpread": false
3615
- },
3616
- {
3617
- "__schema": "ParameterSchema",
3618
- "location": {
3619
- "filePath": "events/component-compilation-on-done.ts",
3620
- "line": 17,
3621
- "character": 5
3622
- },
3623
- "name": "timestamp",
3624
- "type": {
3625
- "__schema": "InferenceTypeSchema",
3626
- "location": {
3627
- "filePath": "events/component-compilation-on-done.ts",
3628
- "line": 17,
3629
- "character": 5
3630
- },
3631
- "type": "number"
3632
- },
3633
- "isOptional": true,
3634
- "defaultValue": "Date.now()",
3635
- "isSpread": false
3636
- }
3637
- ],
3638
- "returnType": {
3639
- "__schema": "ThisTypeSchema",
3640
- "location": {
3641
- "filePath": "events/component-compilation-on-done.ts",
3642
- "line": 10,
3643
- "character": 1
3644
- },
3645
- "name": "ComponentCompilationOnDoneEvent"
3646
- },
3647
- "modifiers": []
3648
- }
3649
- ],
3650
- "extendsNodes": [
3651
- {
3652
- "__schema": "ExpressionWithTypeArgumentsSchema",
3653
- "location": {
3654
- "filePath": "events/component-compilation-on-done.ts",
3655
- "line": 10,
3656
- "character": 54
3657
- },
3658
- "name": "extends BitBaseEvent<ComponentCompilationOnDoneEventData>",
3659
- "typeArgs": [
3660
- {
3661
- "__schema": "TypeRefSchema",
3662
- "location": {
3663
- "filePath": "events/component-compilation-on-done.ts",
3664
- "line": 10,
3665
- "character": 67
3666
- },
3667
- "name": "ComponentCompilationOnDoneEventData",
3668
- "internalFilePath": "events/component-compilation-on-done.ts"
3669
- }
3670
- ],
3671
- "expression": {
3672
- "__schema": "TypeRefSchema",
3673
- "location": {
3674
- "filePath": "events/component-compilation-on-done.ts",
3675
- "line": 10,
3676
- "character": 54
3677
- },
3678
- "name": "BitBaseEvent<T>",
3679
- "componentId": {
3680
- "_legacy": {
3681
- "scope": "teambit.compilation",
3682
- "name": "compiler",
3683
- "version": "1.0.202"
3482
+ "version": "1.0.204"
3684
3483
  },
3685
3484
  "_scope": "teambit.compilation"
3686
3485
  }
@@ -5398,7 +5197,7 @@
5398
5197
  "_legacy": {
5399
5198
  "scope": "teambit.compilation",
5400
5199
  "name": "compiler",
5401
- "version": "1.0.202"
5200
+ "version": "1.0.204"
5402
5201
  },
5403
5202
  "_scope": "teambit.compilation"
5404
5203
  }
@@ -7096,7 +6895,7 @@
7096
6895
  "_legacy": {
7097
6896
  "scope": "teambit.compilation",
7098
6897
  "name": "compiler",
7099
- "version": "1.0.202"
6898
+ "version": "1.0.204"
7100
6899
  },
7101
6900
  "_scope": "teambit.compilation"
7102
6901
  }
@@ -7243,7 +7042,7 @@
7243
7042
  "_legacy": {
7244
7043
  "scope": "teambit.compilation",
7245
7044
  "name": "compiler",
7246
- "version": "1.0.202"
7045
+ "version": "1.0.204"
7247
7046
  },
7248
7047
  "_scope": "teambit.compilation"
7249
7048
  }
@@ -7311,345 +7110,12 @@
7311
7110
  "implementNodes": []
7312
7111
  }
7313
7112
  ]
7314
- },
7315
- {
7316
- "__schema": "ModuleSchema",
7317
- "location": {
7318
- "filePath": "events/component-compilation-on-done.ts",
7319
- "line": 2,
7320
- "character": 1
7321
- },
7322
- "exports": [
7323
- {
7324
- "__schema": "ClassSchema",
7325
- "location": {
7326
- "filePath": "events/component-compilation-on-done.ts",
7327
- "line": 10,
7328
- "character": 1
7329
- },
7330
- "signature": "class ComponentCompilationOnDoneEvent",
7331
- "name": "ComponentCompilationOnDoneEvent",
7332
- "members": [
7333
- {
7334
- "__schema": "VariableLikeSchema",
7335
- "location": {
7336
- "filePath": "events/component-compilation-on-done.ts",
7337
- "line": 11,
7338
- "character": 3
7339
- },
7340
- "signature": "(property) ComponentCompilationOnDoneEvent.TYPE: \"component-compilation-on-done\"",
7341
- "name": "TYPE",
7342
- "type": {
7343
- "__schema": "InferenceTypeSchema",
7344
- "location": {
7345
- "filePath": "events/component-compilation-on-done.ts",
7346
- "line": 11,
7347
- "character": 3
7348
- },
7349
- "type": "\"component-compilation-on-done\""
7350
- },
7351
- "isOptional": true,
7352
- "defaultValue": "'component-compilation-on-done'"
7353
- },
7354
- {
7355
- "__schema": "ConstructorSchema",
7356
- "location": {
7357
- "filePath": "events/component-compilation-on-done.ts",
7358
- "line": 13,
7359
- "character": 3
7360
- },
7361
- "signature": "constructor ComponentCompilationOnDoneEvent(errors: Array<CompileError>, component: Component, buildResults: string[], timestamp?: number): ComponentCompilationOnDoneEvent",
7362
- "name": "constructor",
7363
- "params": [
7364
- {
7365
- "__schema": "ParameterSchema",
7366
- "location": {
7367
- "filePath": "events/component-compilation-on-done.ts",
7368
- "line": 14,
7369
- "character": 5
7370
- },
7371
- "name": "errors",
7372
- "type": {
7373
- "__schema": "TypeRefSchema",
7374
- "location": {
7375
- "filePath": "events/component-compilation-on-done.ts",
7376
- "line": 14,
7377
- "character": 22
7378
- },
7379
- "name": "Array",
7380
- "typeArgs": [
7381
- {
7382
- "__schema": "TypeRefSchema",
7383
- "location": {
7384
- "filePath": "events/component-compilation-on-done.ts",
7385
- "line": 14,
7386
- "character": 28
7387
- },
7388
- "name": "CompileError",
7389
- "internalFilePath": "workspace-compiler.ts"
7390
- }
7391
- ]
7392
- },
7393
- "isOptional": false,
7394
- "isSpread": false
7395
- },
7396
- {
7397
- "__schema": "ParameterSchema",
7398
- "location": {
7399
- "filePath": "events/component-compilation-on-done.ts",
7400
- "line": 15,
7401
- "character": 5
7402
- },
7403
- "name": "component",
7404
- "type": {
7405
- "__schema": "TypeRefSchema",
7406
- "location": {
7407
- "filePath": "events/component-compilation-on-done.ts",
7408
- "line": 15,
7409
- "character": 25
7410
- },
7411
- "name": "Component",
7412
- "componentId": {
7413
- "scope": "teambit.component",
7414
- "name": "component"
7415
- }
7416
- },
7417
- "isOptional": false,
7418
- "isSpread": false
7419
- },
7420
- {
7421
- "__schema": "ParameterSchema",
7422
- "location": {
7423
- "filePath": "events/component-compilation-on-done.ts",
7424
- "line": 16,
7425
- "character": 5
7426
- },
7427
- "name": "buildResults",
7428
- "type": {
7429
- "__schema": "TypeArraySchema",
7430
- "location": {
7431
- "filePath": "events/component-compilation-on-done.ts",
7432
- "line": 16,
7433
- "character": 28
7434
- },
7435
- "type": {
7436
- "__schema": "KeywordTypeSchema",
7437
- "location": {
7438
- "filePath": "events/component-compilation-on-done.ts",
7439
- "line": 16,
7440
- "character": 28
7441
- },
7442
- "name": "string"
7443
- }
7444
- },
7445
- "isOptional": false,
7446
- "isSpread": false
7447
- },
7448
- {
7449
- "__schema": "ParameterSchema",
7450
- "location": {
7451
- "filePath": "events/component-compilation-on-done.ts",
7452
- "line": 17,
7453
- "character": 5
7454
- },
7455
- "name": "timestamp",
7456
- "type": {
7457
- "__schema": "InferenceTypeSchema",
7458
- "location": {
7459
- "filePath": "events/component-compilation-on-done.ts",
7460
- "line": 17,
7461
- "character": 5
7462
- },
7463
- "type": "number"
7464
- },
7465
- "isOptional": true,
7466
- "defaultValue": "Date.now()",
7467
- "isSpread": false
7468
- }
7469
- ],
7470
- "returnType": {
7471
- "__schema": "ThisTypeSchema",
7472
- "location": {
7473
- "filePath": "events/component-compilation-on-done.ts",
7474
- "line": 10,
7475
- "character": 1
7476
- },
7477
- "name": "ComponentCompilationOnDoneEvent"
7478
- },
7479
- "modifiers": []
7480
- }
7481
- ],
7482
- "extendsNodes": [
7483
- {
7484
- "__schema": "ExpressionWithTypeArgumentsSchema",
7485
- "location": {
7486
- "filePath": "events/component-compilation-on-done.ts",
7487
- "line": 10,
7488
- "character": 54
7489
- },
7490
- "name": "extends BitBaseEvent<ComponentCompilationOnDoneEventData>",
7491
- "typeArgs": [
7492
- {
7493
- "__schema": "TypeRefSchema",
7494
- "location": {
7495
- "filePath": "events/component-compilation-on-done.ts",
7496
- "line": 10,
7497
- "character": 67
7498
- },
7499
- "name": "ComponentCompilationOnDoneEventData",
7500
- "internalFilePath": "events/component-compilation-on-done.ts"
7501
- }
7502
- ],
7503
- "expression": {
7504
- "__schema": "TypeRefSchema",
7505
- "location": {
7506
- "filePath": "events/component-compilation-on-done.ts",
7507
- "line": 10,
7508
- "character": 54
7509
- },
7510
- "name": "BitBaseEvent<T>",
7511
- "componentId": {
7512
- "_legacy": {
7513
- "scope": "teambit.compilation",
7514
- "name": "compiler",
7515
- "version": "1.0.202"
7516
- },
7517
- "_scope": "teambit.compilation"
7518
- }
7519
- }
7520
- }
7521
- ],
7522
- "implementNodes": []
7523
- }
7524
- ],
7525
- "internals": [
7526
- {
7527
- "__schema": "ClassSchema",
7528
- "location": {
7529
- "filePath": "events/component-compilation-on-done.ts",
7530
- "line": 6,
7531
- "character": 1
7532
- },
7533
- "signature": "class ComponentCompilationOnDoneEventData",
7534
- "name": "ComponentCompilationOnDoneEventData",
7535
- "members": [
7536
- {
7537
- "__schema": "ConstructorSchema",
7538
- "location": {
7539
- "filePath": "events/component-compilation-on-done.ts",
7540
- "line": 7,
7541
- "character": 3
7542
- },
7543
- "signature": "constructor ComponentCompilationOnDoneEventData(errors: Array<CompileError>, component: Component, buildResults: string[]): ComponentCompilationOnDoneEventData",
7544
- "name": "constructor",
7545
- "params": [
7546
- {
7547
- "__schema": "ParameterSchema",
7548
- "location": {
7549
- "filePath": "events/component-compilation-on-done.ts",
7550
- "line": 7,
7551
- "character": 15
7552
- },
7553
- "name": "errors",
7554
- "type": {
7555
- "__schema": "TypeRefSchema",
7556
- "location": {
7557
- "filePath": "events/component-compilation-on-done.ts",
7558
- "line": 7,
7559
- "character": 32
7560
- },
7561
- "name": "Array",
7562
- "typeArgs": [
7563
- {
7564
- "__schema": "TypeRefSchema",
7565
- "location": {
7566
- "filePath": "events/component-compilation-on-done.ts",
7567
- "line": 7,
7568
- "character": 38
7569
- },
7570
- "name": "CompileError",
7571
- "internalFilePath": "workspace-compiler.ts"
7572
- }
7573
- ]
7574
- },
7575
- "isOptional": false,
7576
- "isSpread": false
7577
- },
7578
- {
7579
- "__schema": "ParameterSchema",
7580
- "location": {
7581
- "filePath": "events/component-compilation-on-done.ts",
7582
- "line": 7,
7583
- "character": 53
7584
- },
7585
- "name": "component",
7586
- "type": {
7587
- "__schema": "TypeRefSchema",
7588
- "location": {
7589
- "filePath": "events/component-compilation-on-done.ts",
7590
- "line": 7,
7591
- "character": 73
7592
- },
7593
- "name": "Component",
7594
- "componentId": {
7595
- "scope": "teambit.component",
7596
- "name": "component"
7597
- }
7598
- },
7599
- "isOptional": false,
7600
- "isSpread": false
7601
- },
7602
- {
7603
- "__schema": "ParameterSchema",
7604
- "location": {
7605
- "filePath": "events/component-compilation-on-done.ts",
7606
- "line": 7,
7607
- "character": 84
7608
- },
7609
- "name": "buildResults",
7610
- "type": {
7611
- "__schema": "TypeArraySchema",
7612
- "location": {
7613
- "filePath": "events/component-compilation-on-done.ts",
7614
- "line": 7,
7615
- "character": 107
7616
- },
7617
- "type": {
7618
- "__schema": "KeywordTypeSchema",
7619
- "location": {
7620
- "filePath": "events/component-compilation-on-done.ts",
7621
- "line": 7,
7622
- "character": 107
7623
- },
7624
- "name": "string"
7625
- }
7626
- },
7627
- "isOptional": false,
7628
- "isSpread": false
7629
- }
7630
- ],
7631
- "returnType": {
7632
- "__schema": "ThisTypeSchema",
7633
- "location": {
7634
- "filePath": "events/component-compilation-on-done.ts",
7635
- "line": 6,
7636
- "character": 1
7637
- },
7638
- "name": "ComponentCompilationOnDoneEventData"
7639
- },
7640
- "modifiers": []
7641
- }
7642
- ],
7643
- "extendsNodes": [],
7644
- "implementNodes": []
7645
- }
7646
- ]
7647
7113
  }
7648
7114
  ],
7649
7115
  "componentId": {
7650
7116
  "scope": "teambit.compilation",
7651
7117
  "name": "compiler",
7652
- "version": "1.0.202"
7118
+ "version": "1.0.204"
7653
7119
  },
7654
7120
  "taggedModuleExports": []
7655
7121
  }