@teambit/compilation.aspect-docs.multi-compiler 0.0.176 → 0.0.177
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 +1 -8
- package/dist/index.js.map +1 -1
- package/dist/multi-compiler.composition.js +5 -14
- package/dist/multi-compiler.composition.js.map +1 -1
- package/dist/multi-compiler.mdx.js +18 -24
- package/dist/multi-compiler.mdx.js.map +1 -1
- package/dist/{preview-1779204000743.js → preview-1781124335027.js} +2 -2
- package/package.json +3 -3
- package/types/asset.d.ts +15 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
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; } });
|
|
1
|
+
export { default as MultiCompiler } from './multi-compiler.mdx';
|
|
9
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
|
|
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))));
|
|
14
|
-
exports.MultiCompilerDocs = MultiCompilerDocs;
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ThemeCompositions } from '@teambit/documenter.theme.theme-compositions';
|
|
3
|
+
import { MDXLayout } from '@teambit/mdx.ui.mdx-layout';
|
|
4
|
+
import { MultiCompiler } from './index';
|
|
5
|
+
export const MultiCompilerDocs = () => (_jsx(ThemeCompositions, { children: _jsx(MDXLayout, { children: _jsx(MultiCompiler, {}) }) }));
|
|
15
6
|
//# sourceMappingURL=multi-compiler.composition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-compiler.composition.js","sourceRoot":"","sources":["../multi-compiler.composition.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-compiler.composition.js","sourceRoot":"","sources":["../multi-compiler.composition.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,CACrC,KAAC,iBAAiB,cAChB,KAAC,SAAS,cACR,KAAC,aAAa,KAAG,GACP,GACM,CACrB,CAAC"}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = MDXContent;
|
|
7
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _react = require("@mdx-js/react");
|
|
9
1
|
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
2
|
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
3
|
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; }
|
|
@@ -13,6 +5,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
13
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
6
|
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); }
|
|
15
7
|
MDXContent.isMDXComponent = true;
|
|
8
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { useMDXComponents as _provideComponents } from "@mdx-js/react";
|
|
16
10
|
function _createMdxContent(props) {
|
|
17
11
|
var _components = _objectSpread(_objectSpread({
|
|
18
12
|
code: "code",
|
|
@@ -20,38 +14,38 @@ function _createMdxContent(props) {
|
|
|
20
14
|
p: "p",
|
|
21
15
|
pre: "pre",
|
|
22
16
|
ul: "ul"
|
|
23
|
-
}, (
|
|
24
|
-
return (
|
|
25
|
-
children: [(
|
|
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 ", (
|
|
17
|
+
}, _provideComponents()), props.components);
|
|
18
|
+
return _jsxs(_Fragment, {
|
|
19
|
+
children: [_jsxs(_components.p, {
|
|
20
|
+
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, {
|
|
27
21
|
children: "isFileSupported()"
|
|
28
22
|
}), " compiler API."]
|
|
29
|
-
}), "\n", (
|
|
30
|
-
children: ["\n", (
|
|
31
|
-
children: [(
|
|
23
|
+
}), "\n", _jsxs(_components.ul, {
|
|
24
|
+
children: ["\n", _jsxs(_components.li, {
|
|
25
|
+
children: [_jsx(_components.code, {
|
|
32
26
|
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 ", (
|
|
27
|
+
}), " API to support the creation a Multi-compiler instance which can be used in the Env API (the ", _jsx(_components.code, {
|
|
34
28
|
children: "overrideCompiler"
|
|
35
|
-
}), " and ", (
|
|
29
|
+
}), " and ", _jsx(_components.code, {
|
|
36
30
|
children: "getCompiler"
|
|
37
31
|
}), " APIs)."]
|
|
38
|
-
}), "\n", (
|
|
32
|
+
}), "\n", _jsx(_components.li, {
|
|
39
33
|
children: "Supports the creation of a multi-compiler build tasks."
|
|
40
34
|
}), "\n"]
|
|
41
|
-
}), "\n", (
|
|
42
|
-
children: (
|
|
35
|
+
}), "\n", _jsx(_components.pre, {
|
|
36
|
+
children: _jsx(_components.code, {
|
|
43
37
|
className: "language-ts",
|
|
44
38
|
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
39
|
})
|
|
46
40
|
})]
|
|
47
41
|
});
|
|
48
42
|
}
|
|
49
|
-
function MDXContent() {
|
|
43
|
+
export default function MDXContent() {
|
|
50
44
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
51
|
-
var _provideComponents$pr = _objectSpread(_objectSpread({}, (
|
|
45
|
+
var _provideComponents$pr = _objectSpread(_objectSpread({}, _provideComponents()), props.components),
|
|
52
46
|
MDXLayout = _provideComponents$pr.wrapper;
|
|
53
|
-
return MDXLayout ? (
|
|
54
|
-
children: (
|
|
47
|
+
return MDXLayout ? _jsx(MDXLayout, _objectSpread(_objectSpread({}, props), {}, {
|
|
48
|
+
children: _jsx(_createMdxContent, _objectSpread({}, props))
|
|
55
49
|
})) : _createMdxContent(props);
|
|
56
50
|
}
|
|
57
51
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
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.177","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,CA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C,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.
|
|
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.177/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.177/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,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/compilation.aspect-docs.multi-compiler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.177",
|
|
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.177"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"core-js": "^3.0.0",
|
|
13
|
-
"@mdx-js/react": "1.
|
|
13
|
+
"@mdx-js/react": "^3.1.1",
|
|
14
14
|
"@teambit/mdx.ui.mdx-scope-context": "1.0.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
package/types/asset.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ declare module '*.png' {
|
|
|
5
5
|
declare module '*.svg' {
|
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
7
|
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
9
11
|
const src: string;
|
|
10
12
|
export default src;
|
|
11
13
|
}
|
|
@@ -27,3 +29,15 @@ declare module '*.bmp' {
|
|
|
27
29
|
const value: any;
|
|
28
30
|
export = value;
|
|
29
31
|
}
|
|
32
|
+
declare module '*.otf' {
|
|
33
|
+
const value: any;
|
|
34
|
+
export = value;
|
|
35
|
+
}
|
|
36
|
+
declare module '*.woff' {
|
|
37
|
+
const value: any;
|
|
38
|
+
export = value;
|
|
39
|
+
}
|
|
40
|
+
declare module '*.woff2' {
|
|
41
|
+
const value: any;
|
|
42
|
+
export = value;
|
|
43
|
+
}
|