@teambit/compilation.aspect-docs.multi-compiler 0.0.134 → 0.0.137
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.
- package/dist/index.js +7 -15
- package/dist/index.js.map +1 -1
- package/dist/multi-compiler.composition.js +11 -20
- package/dist/multi-compiler.composition.js.map +1 -1
- package/dist/multi-compiler.mdx.js +5 -7
- package/dist/multi-compiler.mdx.js.map +1 -1
- package/package-tar/teambit-compilation.aspect-docs.multi-compiler-0.0.137.tgz +0 -0
- package/package.json +3 -3
- package/{preview-1647202499074.js → preview-1651116285533.js} +2 -2
- package/tsconfig.json +1 -1
- package/package-tar/teambit-compilation.aspect-docs.multi-compiler-0.0.134.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return _multiCompiler["default"];
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
var _multiCompiler = _interopRequireDefault(require("./multi-compiler.mdx"));
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
16
|
-
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MultiCompiler = void 0;
|
|
7
|
+
var multi_compiler_mdx_1 = require("./multi-compiler.mdx");
|
|
8
|
+
Object.defineProperty(exports, "MultiCompiler", { enumerable: true, get: function () { return __importDefault(multi_compiler_mdx_1).default; } });
|
|
17
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;AAAA,2DAAgE;AAAvD,oIAAA,OAAO,OAAiB"}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MultiCompilerDocs = void 0;
|
|
7
|
-
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
|
-
var _documenterTheme = require("@teambit/documenter.theme.theme-compositions");
|
|
11
|
-
|
|
12
|
-
var _mdxUi = require("@teambit/mdx.ui.mdx-layout");
|
|
13
|
-
|
|
14
|
-
var _index = require("./index");
|
|
15
|
-
|
|
16
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
18
|
-
var MultiCompilerDocs = function MultiCompilerDocs() {
|
|
19
|
-
return /*#__PURE__*/_react["default"].createElement(_documenterTheme.ThemeCompositions, null, /*#__PURE__*/_react["default"].createElement(_mdxUi.MDXLayout, null, /*#__PURE__*/_react["default"].createElement(_index.MultiCompiler, null)));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
4
|
};
|
|
21
|
-
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MultiCompilerDocs = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const documenter_theme_theme_compositions_1 = require("@teambit/documenter.theme.theme-compositions");
|
|
9
|
+
const mdx_ui_mdx_layout_1 = require("@teambit/mdx.ui.mdx-layout");
|
|
10
|
+
const index_1 = require("./index");
|
|
11
|
+
const MultiCompilerDocs = () => (react_1.default.createElement(documenter_theme_theme_compositions_1.ThemeCompositions, null,
|
|
12
|
+
react_1.default.createElement(mdx_ui_mdx_layout_1.MDXLayout, null,
|
|
13
|
+
react_1.default.createElement(index_1.MultiCompiler, null))));
|
|
22
14
|
exports.MultiCompilerDocs = MultiCompilerDocs;
|
|
23
|
-
|
|
24
15
|
//# sourceMappingURL=multi-compiler.composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["multi-compiler.composition.tsx"],"names":[
|
|
1
|
+
{"version":3,"file":"multi-compiler.composition.js","sourceRoot":"","sources":["../multi-compiler.composition.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,sGAAiF;AACjF,kEAAuD;AACvD,mCAAwC;AAEjC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,CACrC,8BAAC,uDAAiB;IAChB,8BAAC,6BAAS;QACR,8BAAC,qBAAa,OAAG,CACP,CACM,CACrB,CAAC;AANW,QAAA,iBAAiB,qBAM5B"}
|
|
@@ -9,8 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
|
|
10
10
|
var _react2 = require("@mdx-js/react");
|
|
11
11
|
|
|
12
|
-
var _mdxUi = require("@teambit/mdx.ui.mdx-scope-context");
|
|
13
|
-
|
|
14
12
|
var _excluded = ["components"];
|
|
15
13
|
|
|
16
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -21,6 +19,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
21
19
|
|
|
22
20
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
23
21
|
|
|
22
|
+
/* @jsxRuntime classic */
|
|
23
|
+
|
|
24
|
+
/* @jsx mdx */
|
|
24
25
|
var layoutProps = {};
|
|
25
26
|
var MDXLayout = "wrapper";
|
|
26
27
|
|
|
@@ -31,10 +32,7 @@ function MDXContent(_ref) {
|
|
|
31
32
|
return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
|
|
32
33
|
components: components,
|
|
33
34
|
mdxType: "MDXLayout"
|
|
34
|
-
}), (0, _react2.mdx)(
|
|
35
|
-
components: {},
|
|
36
|
-
mdxType: "MDXScopeProvider"
|
|
37
|
-
}, (0, _react2.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, _react2.mdx)("inlineCode", {
|
|
35
|
+
}), (0, _react2.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, _react2.mdx)("inlineCode", {
|
|
38
36
|
parentName: "p"
|
|
39
37
|
}, "isFileSupported()"), " compiler API."), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
40
38
|
parentName: "ul"
|
|
@@ -49,7 +47,7 @@ function MDXContent(_ref) {
|
|
|
49
47
|
}, "Supports the creation of a multi-compiler build tasks.")), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
50
48
|
parentName: "pre",
|
|
51
49
|
"className": "language-ts"
|
|
52
|
-
}, "// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")))
|
|
50
|
+
}, "// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")));
|
|
53
51
|
}
|
|
54
52
|
|
|
55
53
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["multi-compiler.mdx.js"],"names":["layoutProps","MDXLayout","MDXContent","components","props","isMDXComponent"],"mappings":";;;;;;;AAEA;;AACA;;AAKA
|
|
1
|
+
{"version":3,"sources":["multi-compiler.mdx.js"],"names":["layoutProps","MDXLayout","MDXContent","components","props","isMDXComponent"],"mappings":";;;;;;;AAEA;;AACA;;;;;;;;;;;;AAEA;;AACA;AAKA,IAAMA,WAAW,GAAG,EAApB;AAGA,IAAMC,SAAS,GAAG,SAAlB;;AACe,SAASC,UAAT,OAGZ;AAAA,MAFDC,UAEC,QAFDA,UAEC;AAAA,MADEC,KACF;;AACD,SAAO,iBAAC,SAAD,eAAeJ,WAAf,EAAgCI,KAAhC;AAAuC,IAAA,UAAU,EAAED,UAAnD;AAA+D,IAAA,OAAO,EAAC;AAAvE,MACL,+LAAsK;AAAY,IAAA,UAAU,EAAC;AAAvB,yBAAtK,mBADK,EAEL,6BACE;AAAI,IAAA,UAAU,EAAC;AAAf,KAAoB;AAAY,IAAA,UAAU,EAAC;AAAvB,uEAApB,mGAAiO;AAAY,IAAA,UAAU,EAAC;AAAvB,wBAAjO,WAAuS;AAAY,IAAA,UAAU,EAAC;AAAvB,mBAAvS,YADF,EAEE;AAAI,IAAA,UAAU,EAAC;AAAf,8DAFF,CAFK,EAML,8BAAK;AAAM,IAAA,UAAU,EAAC,KAAjB;AACD,iBAAa;AADZ,sOAAL,CANK,CAAP;AAeD;;AAED;AACAD,UAAU,CAACG,cAAX,GAA4B,IAA5B","sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.137","sourcesContent":["\n// @ts-nocheck\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\n\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n <p>{`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 `}<inlineCode parentName=\"p\">{`isFileSupported()`}</inlineCode>{` compiler API.`}</p>\n <ul>\n <li parentName=\"ul\"><inlineCode parentName=\"li\">{`createCompiler(compilers: Compiler[], options: CompilerOptions)`}</inlineCode>{` API to support the creation a Multi-compiler instance which can be used in the Env API (the `}<inlineCode parentName=\"li\">{`overrideCompiler`}</inlineCode>{` and `}<inlineCode parentName=\"li\">{`getCompiler`}</inlineCode>{` APIs).`}</li>\n <li parentName=\"ul\">{`Supports the creation of a multi-compiler build tasks.`}</li>\n </ul>\n <pre><code parentName=\"pre\" {...{\n \"className\": \"language-ts\"\n }}>{`// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n`}</code></pre>\n </MDXLayout>;\n}\n\n;\nMDXContent.isMDXComponent = true;"]}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compilation.aspect-docs.multi-compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.137",
|
|
4
4
|
"homepage": "https://bit.dev/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.
|
|
9
|
+
"version": "0.0.137"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@types/react-dom": "^17.0.5",
|
|
23
23
|
"@types/node": "12.20.4",
|
|
24
24
|
"@teambit/documenter.theme.theme-compositions": "4.1.1",
|
|
25
|
-
"@teambit/mdx.ui.mdx-layout": "0.0.
|
|
25
|
+
"@teambit/mdx.ui.mdx-layout": "0.0.499"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.
|
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.
|
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.137/dist/multi-compiler.composition.js')]
|
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.compilation_aspect-docs_multi-compiler@0.0.137/dist/multi-compiler.docs.mdx')]
|
package/tsconfig.json
CHANGED
|
Binary file
|