@teambit/compilation.aspect-docs.multi-compiler 0.0.179 → 0.0.180

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 +1 @@
1
- {"version":3,"names":["MDXContent","isMDXComponent","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","useMDXComponents","_provideComponents","_createMdxContent","props","_components","_objectSpread","code","li","p","pre","ul","components","children","className","arguments","length","undefined","_provideComponents$pr","MDXLayout","wrapper"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.179","sources":["multi-compiler.mdx.js"],"sourcesContent":["MDXContent.isMDXComponent = true;\nimport {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from \"react/jsx-runtime\";\nimport {useMDXComponents as _provideComponents} from \"@mdx-js/react\";\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"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 \", _jsx(_components.code, {\n children: \"isFileSupported()\"\n }), \" compiler API.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"createCompiler(compilers: Compiler[], options: CompilerOptions)\"\n }), \" API to support the creation a Multi-compiler instance which can be used in the Env API (the \", _jsx(_components.code, {\n children: \"overrideCompiler\"\n }), \" and \", _jsx(_components.code, {\n children: \"getCompiler\"\n }), \" APIs).\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports the creation of a multi-compiler build tasks.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-ts\",\n children: \"// create a multi compiler instance.\\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\\n\\n// create a multi-compiler build task.\\ncompiler.createTask('MultiCompiler', compiler);\\n\"\n })\n })]\n });\n}\nexport default function MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\n"],"mappings":";;;;;;AAAAA,UAAU,CAACC,cAAc,GAAG,IAAI;AAChC,SAAQC,QAAQ,IAAIC,SAAS,EAAEC,GAAG,IAAIC,IAAI,EAAEC,IAAI,IAAIC,KAAK,QAAO,mBAAmB;AACnF,SAAQC,gBAAgB,IAAIC,kBAAkB,QAAO,eAAe;AACpE,SAASC,iBAAiBA,CAACC,KAAK,EAAE;EAChC,IAAMC,WAAW,GAAAC,aAAA,CAAAA,aAAA;IACfC,IAAI,EAAE,MAAM;IACZC,EAAE,EAAE,IAAI;IACRC,CAAC,EAAE,GAAG;IACNC,GAAG,EAAE,KAAK;IACVC,EAAE,EAAE;EAAI,GACLT,kBAAkB,CAAC,CAAC,GACpBE,KAAK,CAACQ,UAAU,CACpB;EACD,OAAOZ,KAAK,CAACJ,SAAS,EAAE;IACtBiB,QAAQ,EAAE,CAACb,KAAK,CAACK,WAAW,CAACI,CAAC,EAAE;MAC9BI,QAAQ,EAAE,CAAC,iKAAiK,EAAEf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;QACnMM,QAAQ,EAAE;MACZ,CAAC,CAAC,EAAE,gBAAgB;IACtB,CAAC,CAAC,EAAE,IAAI,EAAEb,KAAK,CAACK,WAAW,CAACM,EAAE,EAAE;MAC9BE,QAAQ,EAAE,CAAC,IAAI,EAAEb,KAAK,CAACK,WAAW,CAACG,EAAE,EAAE;QACrCK,QAAQ,EAAE,CAACf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;UAChCM,QAAQ,EAAE;QACZ,CAAC,CAAC,EAAE,+FAA+F,EAAEf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;UAC1HM,QAAQ,EAAE;QACZ,CAAC,CAAC,EAAE,OAAO,EAAEf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;UAClCM,QAAQ,EAAE;QACZ,CAAC,CAAC,EAAE,SAAS;MACf,CAAC,CAAC,EAAE,IAAI,EAAEf,IAAI,CAACO,WAAW,CAACG,EAAE,EAAE;QAC7BK,QAAQ,EAAE;MACZ,CAAC,CAAC,EAAE,IAAI;IACV,CAAC,CAAC,EAAE,IAAI,EAAEf,IAAI,CAACO,WAAW,CAACK,GAAG,EAAE;MAC9BG,QAAQ,EAAEf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;QAC/BO,SAAS,EAAE,aAAa;QACxBD,QAAQ,EAAE;MACZ,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AACA,eAAe,SAASpB,UAAUA,CAAA,EAAa;EAAA,IAAZW,KAAK,GAAAW,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC3C,IAAAG,qBAAA,GAAAZ,aAAA,CAAAA,aAAA,KACKJ,kBAAkB,CAAC,CAAC,GACpBE,KAAK,CAACQ,UAAU;IAFLO,SAAS,GAAAD,qBAAA,CAAlBE,OAAO;EAId,OAAOD,SAAS,GAAGrB,IAAI,CAACqB,SAAS,EAAAb,aAAA,CAAAA,aAAA,KAC5BF,KAAK;IACRS,QAAQ,EAAEf,IAAI,CAACK,iBAAiB,EAAAG,aAAA,KAC3BF,KAAK,CACT;EAAC,EACH,CAAC,GAAGD,iBAAiB,CAACC,KAAK,CAAC;AAC/B","ignoreList":[]}
1
+ {"version":3,"names":["MDXContent","isMDXComponent","Fragment","_Fragment","jsx","_jsx","jsxs","_jsxs","useMDXComponents","_provideComponents","_createMdxContent","props","_components","_objectSpread","code","li","p","pre","ul","components","children","className","arguments","length","undefined","_provideComponents$pr","MDXLayout","wrapper"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.180","sources":["multi-compiler.mdx.js"],"sourcesContent":["MDXContent.isMDXComponent = true;\nimport {Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs} from \"react/jsx-runtime\";\nimport {useMDXComponents as _provideComponents} from \"@mdx-js/react\";\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"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 \", _jsx(_components.code, {\n children: \"isFileSupported()\"\n }), \" compiler API.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"createCompiler(compilers: Compiler[], options: CompilerOptions)\"\n }), \" API to support the creation a Multi-compiler instance which can be used in the Env API (the \", _jsx(_components.code, {\n children: \"overrideCompiler\"\n }), \" and \", _jsx(_components.code, {\n children: \"getCompiler\"\n }), \" APIs).\"]\n }), \"\\n\", _jsx(_components.li, {\n children: \"Supports the creation of a multi-compiler build tasks.\"\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.pre, {\n children: _jsx(_components.code, {\n className: \"language-ts\",\n children: \"// create a multi compiler instance.\\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\\n\\n// create a multi-compiler build task.\\ncompiler.createTask('MultiCompiler', compiler);\\n\"\n })\n })]\n });\n}\nexport default function MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\n"],"mappings":";;;;;;AAAAA,UAAU,CAACC,cAAc,GAAG,IAAI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V,CAAC,CAAC,EAAE,IAAI,EAAEf,IAAI,CAACO,WAAW,CAACK,GAAG,EAAE;MAC9BG,QAAQ,EAAEf,IAAI,CAACO,WAAW,CAACE,IAAI,EAAE;QAC/BO,SAAS,EAAE,aAAa;QACxBD,QAAQ,EAAE;MACZ,CAAC;IACH,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ;AACA,eAAe,SAASpB,UAAUA,CAAA,EAAa;EAAA,IAAZW,KAAK,GAAAW,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;EAC3C,IAAAG,qBAAA,GAAAZ,aAAA,CAAAA,aAAA,KACKJ,kBAAkB,CAAC,CAAC,GACpBE,KAAK,CAACQ,UAAU;IAFLO,SAAS,GAAAD,qBAAA,CAAlBE,OAAO;EAId,OAAOD,SAAS,GAAGrB,IAAI,CAACqB,SAAS,EAAAb,aAAA,CAAAA,aAAA,KAC5BF,KAAK;IACRS,QAAQ,EAAEf,IAAI,CAACK,iBAAiB,EAAAG,aAAA,KAC3BF,KAAK,CACT;EAAC,EACH,CAAC,GAAGD,iBAAiB,CAACC,KAAK,CAAC;AAC/B","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.179/dist/multi-compiler.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.179/dist/multi-compiler.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.180/dist/multi-compiler.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.180/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,19 +1,19 @@
1
1
  {
2
2
  "name": "@teambit/compilation.aspect-docs.multi-compiler",
3
- "version": "0.0.179",
3
+ "version": "0.0.180",
4
4
  "homepage": "https://bit.cloud/teambit/compilation/aspect-docs/multi-compiler",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.compilation",
8
8
  "name": "aspect-docs/multi-compiler",
9
- "version": "0.0.179"
9
+ "version": "0.0.180"
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
13
  "@types/mocha": "9.1.0",
14
14
  "@types/jest": "^29.2.2",
15
15
  "@types/testing-library__jest-dom": "^5.9.5",
16
- "@teambit/mdx.mdx-env": "3.0.5"
16
+ "@teambit/mdx.mdx-env": "3.1.0"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": "^17.0.0 || ^18.0.0",