@teambit/multi-compiler 1.0.502 → 1.0.503

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/multi-compiler@1.0.502" tests="0" failures="0" errors="0" skipped="0"/>
3
+ <testsuite name="teambit.compilation/multi-compiler@1.0.503" 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/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-preview"]=t()}(self,(()=>(()=>{"use strict";var e={4960:function(e,t,o){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MultiCompiler=void 0;var r=o(2294);Object.defineProperty(t,"MultiCompiler",{enumerable:!0,get:function(){return n(r).default}})},2294:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,l(o(1594));var r=o(5016),i=["components"];function l(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)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(null,arguments)}function a(e,t){if(null==e)return{};var o,n,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}l.__bit_component=n,p.__bit_component=n,a.__bit_component=n,c.__bit_component=n;var m={},u="wrapper";function s(e){var t=e.components,o=a(e,i);return(0,r.mdx)(u,p({},m,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the ",(0,r.mdx)("inlineCode",{parentName:"p"},"isFileSupported()")," compiler API."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"createCompiler(compilers: Compiler[], options: CompilerOptions)")," API to support the creation a Multi-compiler instance which can be used in the Env API (the ",(0,r.mdx)("inlineCode",{parentName:"li"},"overrideCompiler")," and ",(0,r.mdx)("inlineCode",{parentName:"li"},"getCompiler")," APIs)."),(0,r.mdx)("li",{parentName:"ul"},"Supports the creation of a multi-compiler build tasks.")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))}s.__bit_component=n,s.isMDXComponent=!0},4854:(e,t,o)=>{var n={id:"teambit.compilation/multi-compiler@1.0.502",homepage:"https://bit.cloud/teambit/compilation/multi-compiler",exported:!0};function r(){const e=i(o(1594));return r=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,r.__bit_component=n,i.__bit_component=n;const l=()=>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/multi-complier.svg"}));l.__bit_component=n,t.Logo=l},5016:e=>{e.exports=MdxJsReact},1594: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].call(i.exports,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={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>b});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(4854),l=(o(1594),o(5016));const p=TeambitMdxUiMdxScopeContext;var a=o(4960),c=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},m.apply(null,arguments)}var u={},s="wrapper";function d(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={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,l.mdx)(s,m({},u,o,{components:t,mdxType:"MDXLayout"}),(0,l.mdx)(p.MDXScopeProvider,{components:{MultiCompiler:a.MultiCompiler},mdxType:"MDXScopeProvider"},(0,l.mdx)(a.MultiCompiler,{mdxType:"MultiCompiler"})))}d.isMDXComponent=!0;const f=[i],b=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return 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/multi-compiler-preview"]=t():e["teambit.compilation/multi-compiler-preview"]=t()}(self,(()=>(()=>{"use strict";var e={84960:(e,t,o)=>{Object.defineProperty(t,"b",{enumerable:!0,get:function(){return n.default}});var n=r(o(32294));function r(e){return e&&e.__esModule?e:{default:e}}r.__bit_component={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0}},32294:(e,t,o)=>{var n={id:"teambit.compilation/aspect-docs/multi-compiler@0.0.172",homepage:"https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",exported:!0};Object.defineProperty(t,"__esModule",{value:!0}),t.default=s,l(o(41594));var r=o(5016),i=["components"];function l(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)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},p.apply(null,arguments)}function a(e,t){if(null==e)return{};var o,n,r=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}function c(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}l.__bit_component=n,p.__bit_component=n,a.__bit_component=n,c.__bit_component=n;var m={},u="wrapper";function s(e){var t=e.components,o=a(e,i);return(0,r.mdx)(u,p({},m,o,{components:t,mdxType:"MDXLayout"}),(0,r.mdx)("p",null,"The multi-compiler aspect allows the configuration of multiple compilers on a component. This determines which compiler to apply on a component file using the ",(0,r.mdx)("inlineCode",{parentName:"p"},"isFileSupported()")," compiler API."),(0,r.mdx)("ul",null,(0,r.mdx)("li",{parentName:"ul"},(0,r.mdx)("inlineCode",{parentName:"li"},"createCompiler(compilers: Compiler[], options: CompilerOptions)")," API to support the creation a Multi-compiler instance which can be used in the Env API (the ",(0,r.mdx)("inlineCode",{parentName:"li"},"overrideCompiler")," and ",(0,r.mdx)("inlineCode",{parentName:"li"},"getCompiler")," APIs)."),(0,r.mdx)("li",{parentName:"ul"},"Supports the creation of a multi-compiler build tasks.")),(0,r.mdx)("pre",null,(0,r.mdx)("code",{parentName:"pre",className:"language-ts"},"// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))}s.__bit_component=n,s.isMDXComponent=!0},39289:(e,t,o)=>{var n={id:"teambit.compilation/multi-compiler@1.0.503",homepage:"https://bit.cloud/teambit/compilation/multi-compiler",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 l=()=>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/multi-complier.svg"}));l.__bit_component=n,t.Logo=l},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={};o.r(n),o.d(n,{compositions:()=>f,compositions_metadata:()=>v,overview:()=>b});var r={};o.r(r),o.d(r,{default:()=>d});var i=o(39289),l=(o(41594),o(5016));const p=TeambitMdxUiMdxScopeContext;var a=o(84960),c=["components"];function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},m.apply(null,arguments)}var u={},s="wrapper";function d(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={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)o=i[n],t.includes(o)||{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}(e,c);return(0,l.mdx)(s,m({},u,o,{components:t,mdxType:"MDXLayout"}),(0,l.mdx)(p.MDXScopeProvider,{components:{MultiCompiler:a.b},mdxType:"MDXScopeProvider"},(0,l.mdx)(a.b,{mdxType:"MultiCompiler"})))}d.isMDXComponent=!0;const f=[i],b=[r],v={compositions:[{displayName:"Logo",identifier:"Logo"}]};return n})()));
@@ -1052,7 +1052,7 @@
1052
1052
  "_legacy": {
1053
1053
  "scope": "teambit.compilation",
1054
1054
  "name": "multi-compiler",
1055
- "version": "1.0.502"
1055
+ "version": "1.0.503"
1056
1056
  },
1057
1057
  "_scope": "teambit.compilation"
1058
1058
  }
@@ -2166,7 +2166,7 @@
2166
2166
  "_legacy": {
2167
2167
  "scope": "teambit.compilation",
2168
2168
  "name": "multi-compiler",
2169
- "version": "1.0.502"
2169
+ "version": "1.0.503"
2170
2170
  },
2171
2171
  "_scope": "teambit.compilation"
2172
2172
  }
@@ -2181,7 +2181,7 @@
2181
2181
  "componentId": {
2182
2182
  "scope": "teambit.compilation",
2183
2183
  "name": "multi-compiler",
2184
- "version": "1.0.502"
2184
+ "version": "1.0.503"
2185
2185
  },
2186
2186
  "taggedModuleExports": []
2187
2187
  }
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.502/dist/multi-compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.502/dist/multi-compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.503/dist/multi-compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_multi-compiler@1.0.503/dist/multi-compiler.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@teambit/multi-compiler",
3
- "version": "1.0.502",
3
+ "version": "1.0.503",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/multi-compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "multi-compiler",
9
- "version": "1.0.502"
9
+ "version": "1.0.503"
10
10
  },
11
11
  "dependencies": {
12
12
  "p-map-series": "2.1.0",
13
13
  "@teambit/harmony": "0.4.6",
14
- "@teambit/builder": "1.0.502",
15
- "@teambit/compiler": "1.0.502",
16
- "@teambit/component": "1.0.502",
14
+ "@teambit/builder": "1.0.503",
15
+ "@teambit/compiler": "1.0.503",
16
+ "@teambit/component": "1.0.503",
17
17
  "@teambit/pipelines.modules.merge-component-results": "0.0.499",
18
- "@teambit/cli": "0.0.1079"
18
+ "@teambit/cli": "0.0.1080"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/mocha": "9.1.0",