@teambit/compilation.aspect-docs.multi-compiler 0.0.175 → 0.0.176
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.
|
@@ -4,42 +4,55 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = MDXContent;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
function
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
/* @jsx mdx */
|
|
16
|
-
|
|
17
|
-
var layoutProps = {};
|
|
18
|
-
var MDXLayout = "wrapper";
|
|
19
|
-
function MDXContent(_ref) {
|
|
20
|
-
var components = _ref.components,
|
|
21
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
-
return (0, _react2.mdx)(MDXLayout, _extends({}, layoutProps, props, {
|
|
23
|
-
components: components,
|
|
24
|
-
mdxType: "MDXLayout"
|
|
25
|
-
}), (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", {
|
|
26
|
-
parentName: "p"
|
|
27
|
-
}, "isFileSupported()"), " compiler API."), (0, _react2.mdx)("ul", null, (0, _react2.mdx)("li", {
|
|
28
|
-
parentName: "ul"
|
|
29
|
-
}, (0, _react2.mdx)("inlineCode", {
|
|
30
|
-
parentName: "li"
|
|
31
|
-
}, "createCompiler(compilers: Compiler[], options: CompilerOptions)"), " API to support the creation a Multi-compiler instance which can be used in the Env API (the ", (0, _react2.mdx)("inlineCode", {
|
|
32
|
-
parentName: "li"
|
|
33
|
-
}, "overrideCompiler"), " and ", (0, _react2.mdx)("inlineCode", {
|
|
34
|
-
parentName: "li"
|
|
35
|
-
}, "getCompiler"), " APIs)."), (0, _react2.mdx)("li", {
|
|
36
|
-
parentName: "ul"
|
|
37
|
-
}, "Supports the creation of a multi-compiler build tasks.")), (0, _react2.mdx)("pre", null, (0, _react2.mdx)("code", {
|
|
38
|
-
parentName: "pre",
|
|
39
|
-
"className": "language-ts"
|
|
40
|
-
}, "// create a multi compiler instance.\nconst compiler = multiCompiler.createCompiler([createBabelCompiler(), createTsCompiler()]);\n\n// create a multi-compiler build task.\ncompiler.createTask('MultiCompiler', compiler);\n")));
|
|
41
|
-
}
|
|
42
|
-
;
|
|
7
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
+
var _react = require("@mdx-js/react");
|
|
9
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43
15
|
MDXContent.isMDXComponent = true;
|
|
16
|
+
function _createMdxContent(props) {
|
|
17
|
+
var _components = _objectSpread(_objectSpread({
|
|
18
|
+
code: "code",
|
|
19
|
+
li: "li",
|
|
20
|
+
p: "p",
|
|
21
|
+
pre: "pre",
|
|
22
|
+
ul: "ul"
|
|
23
|
+
}, (0, _react.useMDXComponents)()), props.components);
|
|
24
|
+
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
25
|
+
children: [(0, _jsxRuntime.jsxs)(_components.p, {
|
|
26
|
+
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 ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
27
|
+
children: "isFileSupported()"
|
|
28
|
+
}), " compiler API."]
|
|
29
|
+
}), "\n", (0, _jsxRuntime.jsxs)(_components.ul, {
|
|
30
|
+
children: ["\n", (0, _jsxRuntime.jsxs)(_components.li, {
|
|
31
|
+
children: [(0, _jsxRuntime.jsx)(_components.code, {
|
|
32
|
+
children: "createCompiler(compilers: Compiler[], options: CompilerOptions)"
|
|
33
|
+
}), " API to support the creation a Multi-compiler instance which can be used in the Env API (the ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
34
|
+
children: "overrideCompiler"
|
|
35
|
+
}), " and ", (0, _jsxRuntime.jsx)(_components.code, {
|
|
36
|
+
children: "getCompiler"
|
|
37
|
+
}), " APIs)."]
|
|
38
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.li, {
|
|
39
|
+
children: "Supports the creation of a multi-compiler build tasks."
|
|
40
|
+
}), "\n"]
|
|
41
|
+
}), "\n", (0, _jsxRuntime.jsx)(_components.pre, {
|
|
42
|
+
children: (0, _jsxRuntime.jsx)(_components.code, {
|
|
43
|
+
className: "language-ts",
|
|
44
|
+
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"
|
|
45
|
+
})
|
|
46
|
+
})]
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function MDXContent() {
|
|
50
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
51
|
+
var _provideComponents$pr = _objectSpread(_objectSpread({}, (0, _react.useMDXComponents)()), props.components),
|
|
52
|
+
MDXLayout = _provideComponents$pr.wrapper;
|
|
53
|
+
return MDXLayout ? (0, _jsxRuntime.jsx)(MDXLayout, _objectSpread(_objectSpread({}, props), {}, {
|
|
54
|
+
children: (0, _jsxRuntime.jsx)(_createMdxContent, _objectSpread({}, props))
|
|
55
|
+
})) : _createMdxContent(props);
|
|
56
|
+
}
|
|
44
57
|
|
|
45
58
|
//# sourceMappingURL=multi-compiler.mdx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","
|
|
1
|
+
{"version":3,"names":["_jsxRuntime","require","_react","_typeof","o","Symbol","iterator","constructor","prototype","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","toPrimitive","call","TypeError","String","Number","MDXContent","isMDXComponent","_createMdxContent","props","_components","code","li","p","pre","ul","_provideComponents","components","_jsxs","_Fragment","children","_jsx","className","undefined","_provideComponents$pr","MDXLayout","wrapper"],"sourceRoot":"/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.176","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":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAqE,SAAAE,QAAAC,CAAA,sCAAAD,OAAA,wBAAAE,MAAA,uBAAAA,MAAA,CAAAC,QAAA,aAAAF,CAAA,kBAAAA,CAAA,gBAAAA,CAAA,WAAAA,CAAA,yBAAAC,MAAA,IAAAD,CAAA,CAAAG,WAAA,KAAAF,MAAA,IAAAD,CAAA,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AA,KAC3BsB,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.
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.
|
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad/teambit.compilation_aspect-docs_multi-compiler@0.0.176/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.176/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,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compilation.aspect-docs.multi-compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.176",
|
|
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.
|
|
9
|
+
"version": "0.0.176"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"@teambit/mdx.ui.mdx-scope-context": "1.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@types/react": "^
|
|
17
|
+
"@types/react": "^19.0.0",
|
|
18
18
|
"@types/mocha": "9.1.0",
|
|
19
19
|
"@types/node": "12.20.4",
|
|
20
|
-
"@types/react-dom": "^
|
|
20
|
+
"@types/react-dom": "^19.0.0",
|
|
21
21
|
"@types/jest": "^26.0.0",
|
|
22
22
|
"@babel/runtime": "7.20.0",
|
|
23
23
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@teambit/mdx.ui.mdx-layout": "1.0.12"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"react": "^
|
|
29
|
-
"react-dom": "^
|
|
28
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
29
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
30
30
|
},
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"optionalDependencies": {},
|