@modern-js/module-tools 2.35.1 → 2.37.0
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/build.js +43 -16
- package/dist/builder/build.d.ts +0 -10
- package/dist/builder/build.js +96 -208
- package/dist/builder/clear.d.ts +1 -4
- package/dist/builder/clear.js +32 -28
- package/dist/builder/copy.js +75 -60
- package/dist/builder/dts/index.js +27 -19
- package/dist/builder/dts/rollup.d.ts +6 -14
- package/dist/builder/dts/rollup.js +60 -37
- package/dist/builder/dts/tsc.d.ts +3 -2
- package/dist/builder/dts/tsc.js +50 -37
- package/dist/builder/esbuild/adapter.d.ts +3 -0
- package/dist/builder/esbuild/adapter.js +286 -0
- package/dist/builder/esbuild/hook.d.ts +4 -0
- package/dist/builder/esbuild/hook.js +103 -0
- package/dist/builder/esbuild/index.d.ts +35 -0
- package/dist/builder/esbuild/index.js +268 -0
- package/dist/builder/esbuild/resolve.d.ts +18 -0
- package/dist/builder/esbuild/resolve.js +140 -0
- package/dist/builder/esbuild/sourcemap.d.ts +16 -0
- package/dist/builder/esbuild/sourcemap.js +86 -0
- package/dist/builder/esbuild/transform.d.ts +7 -0
- package/dist/builder/esbuild/transform.js +45 -0
- package/dist/builder/esbuild/watch.d.ts +2 -0
- package/dist/builder/esbuild/watch.js +115 -0
- package/dist/builder/esbuild/write-file.d.ts +2 -0
- package/dist/builder/esbuild/write-file.js +89 -0
- package/dist/builder/feature/asset.d.ts +19 -0
- package/dist/builder/feature/asset.js +149 -0
- package/dist/builder/feature/format-cjs.d.ts +5 -0
- package/dist/builder/feature/format-cjs.js +53 -0
- package/dist/builder/feature/index.d.ts +2 -0
- package/dist/builder/feature/index.js +74 -0
- package/dist/builder/feature/json.d.ts +5 -0
- package/dist/builder/feature/json.js +47 -0
- package/dist/builder/feature/redirect.d.ts +5 -0
- package/dist/builder/feature/redirect.js +223 -0
- package/dist/builder/feature/style/index.d.ts +5 -0
- package/dist/builder/feature/style/index.js +94 -0
- package/dist/builder/feature/style/lessAliasPlugin.d.ts +12 -0
- package/dist/builder/feature/style/lessAliasPlugin.js +70 -0
- package/dist/builder/feature/style/lessRender.d.ts +2 -0
- package/dist/builder/feature/style/lessRender.js +64 -0
- package/dist/builder/feature/style/postcssTransformer.d.ts +6 -0
- package/dist/builder/feature/style/postcssTransformer.js +95 -0
- package/dist/builder/feature/style/postcssUrlPlugin.d.ts +6 -0
- package/dist/builder/feature/style/postcssUrlPlugin.js +58 -0
- package/dist/builder/feature/style/sassRender.d.ts +2 -0
- package/dist/builder/feature/style/sassRender.js +85 -0
- package/dist/builder/feature/style/transformStyle.d.ts +13 -0
- package/dist/builder/feature/style/transformStyle.js +101 -0
- package/dist/builder/feature/style/utils.d.ts +18 -0
- package/dist/builder/feature/style/utils.js +130 -0
- package/dist/builder/feature/swc.d.ts +9 -0
- package/dist/builder/feature/swc.js +170 -0
- package/dist/builder/feature/terser.d.ts +5 -0
- package/dist/builder/feature/terser.js +83 -0
- package/dist/builder/index.js +59 -28
- package/dist/builder/platform.js +38 -23
- package/dist/cli.js +58 -29
- package/dist/command.js +62 -38
- package/dist/config/defineConfig.js +25 -17
- package/dist/config/legacySchema.js +35 -32
- package/dist/config/merge.js +69 -36
- package/dist/config/normalize.js +63 -46
- package/dist/config/schema.d.ts +48 -0
- package/dist/config/schema.js +53 -34
- package/dist/config/transformLegacyConfig.js +67 -61
- package/dist/config/valid.d.ts +2 -2
- package/dist/config/valid.js +44 -21
- package/dist/constants/build.d.ts +5 -1
- package/dist/constants/build.js +88 -46
- package/dist/constants/color.js +27 -20
- package/dist/constants/dts.js +27 -20
- package/dist/constants/file.d.ts +2 -2
- package/dist/constants/file.js +48 -25
- package/dist/constants/legacy-preset.js +45 -32
- package/dist/constants/loader.d.ts +2 -0
- package/dist/constants/loader.js +53 -0
- package/dist/constants/log.d.ts +0 -8
- package/dist/constants/log.js +27 -41
- package/dist/constants/preset.d.ts +4 -4
- package/dist/constants/preset.js +55 -62
- package/dist/debug.d.ts +4 -0
- package/dist/debug.js +37 -0
- package/dist/dev.js +42 -25
- package/dist/error.js +49 -42
- package/dist/hooks/build.d.ts +1 -2
- package/dist/hooks/build.js +36 -28
- package/dist/hooks/dev.js +32 -17
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.js +31 -16
- package/dist/hooks/misc.d.ts +5 -2
- package/dist/hooks/misc.js +31 -12
- package/dist/index.d.ts +2 -1
- package/dist/index.js +39 -32
- package/dist/locale/en.js +32 -17
- package/dist/locale/index.d.ts +2 -1
- package/dist/locale/index.js +31 -24
- package/dist/locale/zh.js +32 -17
- package/dist/plugins.js +28 -13
- package/dist/types/color.js +15 -5
- package/dist/types/command.d.ts +3 -3
- package/dist/types/command.js +15 -5
- package/dist/types/config/copy.js +15 -5
- package/dist/types/config/dev.js +15 -5
- package/dist/types/config/index.d.ts +87 -52
- package/dist/types/config/index.js +24 -6
- package/dist/types/config/style.d.ts +58 -6
- package/dist/types/config/style.js +15 -5
- package/dist/types/context.js +15 -5
- package/dist/types/dts.d.ts +14 -3
- package/dist/types/dts.js +15 -5
- package/dist/types/esbuild.d.ts +107 -0
- package/dist/types/esbuild.js +32 -0
- package/dist/types/hooks.js +15 -5
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +32 -11
- package/dist/types/legacyConfig/index.js +15 -5
- package/dist/types/legacyConfig/output.d.ts +4 -4
- package/dist/types/legacyConfig/output.js +15 -5
- package/dist/types/legacyConfig/source.js +15 -5
- package/dist/types/legacyConfig/tools.js +15 -5
- package/dist/utils/assert.d.ts +5 -0
- package/dist/utils/assert.js +50 -0
- package/dist/utils/builder.d.ts +10 -14
- package/dist/utils/builder.js +59 -59
- package/dist/utils/common.d.ts +1 -1
- package/dist/utils/common.js +25 -17
- package/dist/utils/dts.d.ts +26 -9
- package/dist/utils/dts.js +98 -64
- package/dist/utils/hash.d.ts +2 -0
- package/dist/utils/hash.js +31 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.js +42 -0
- package/dist/utils/input.js +47 -24
- package/dist/utils/log.d.ts +1 -2
- package/dist/utils/log.js +36 -20
- package/dist/utils/map.d.ts +13 -0
- package/dist/utils/map.js +58 -0
- package/dist/utils/onExit.js +35 -11
- package/dist/utils/print.d.ts +2 -2
- package/dist/utils/print.js +52 -49
- package/dist/utils/style.d.ts +5 -23
- package/dist/utils/style.js +57 -37
- package/dist/utils/tspath.js +114 -0
- package/package.json +61 -50
- package/vitest.config.ts +20 -0
- package/dist/build.js.map +0 -1
- package/dist/builder/build.js.map +0 -1
- package/dist/builder/clear.js.map +0 -1
- package/dist/builder/copy.js.map +0 -1
- package/dist/builder/dts/index.js.map +0 -1
- package/dist/builder/dts/rollup.js.map +0 -1
- package/dist/builder/dts/tsc.js.map +0 -1
- package/dist/builder/index.js.map +0 -1
- package/dist/builder/platform.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/command.js.map +0 -1
- package/dist/config/defineConfig.js.map +0 -1
- package/dist/config/legacySchema.js.map +0 -1
- package/dist/config/merge.js.map +0 -1
- package/dist/config/normalize.js.map +0 -1
- package/dist/config/schema.js.map +0 -1
- package/dist/config/transformLegacyConfig.js.map +0 -1
- package/dist/config/valid.js.map +0 -1
- package/dist/constants/build.js.map +0 -1
- package/dist/constants/color.js.map +0 -1
- package/dist/constants/dts.js.map +0 -1
- package/dist/constants/file.js.map +0 -1
- package/dist/constants/legacy-preset.js.map +0 -1
- package/dist/constants/log.js.map +0 -1
- package/dist/constants/preset.js.map +0 -1
- package/dist/dev.js.map +0 -1
- package/dist/error.js.map +0 -1
- package/dist/hooks/build.js.map +0 -1
- package/dist/hooks/dev.js.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/misc.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/locale/en.js.map +0 -1
- package/dist/locale/index.js.map +0 -1
- package/dist/locale/zh.js.map +0 -1
- package/dist/plugins.js.map +0 -1
- package/dist/types/color.js.map +0 -1
- package/dist/types/command.js.map +0 -1
- package/dist/types/config/copy.js.map +0 -1
- package/dist/types/config/dev.js.map +0 -1
- package/dist/types/config/index.js.map +0 -1
- package/dist/types/config/style.js.map +0 -1
- package/dist/types/context.js.map +0 -1
- package/dist/types/dts.js.map +0 -1
- package/dist/types/hooks.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/legacyConfig/index.js.map +0 -1
- package/dist/types/legacyConfig/output.js.map +0 -1
- package/dist/types/legacyConfig/source.js.map +0 -1
- package/dist/types/legacyConfig/tools.js.map +0 -1
- package/dist/types/utils.d.ts +0 -5
- package/dist/types/utils.js +0 -4
- package/dist/utils/builder.js.map +0 -1
- package/dist/utils/common.js.map +0 -1
- package/dist/utils/context.d.ts +0 -7
- package/dist/utils/context.js +0 -23
- package/dist/utils/context.js.map +0 -1
- package/dist/utils/dts.js.map +0 -1
- package/dist/utils/input.js.map +0 -1
- package/dist/utils/language.d.ts +0 -1
- package/dist/utils/language.js +0 -22
- package/dist/utils/language.js.map +0 -1
- package/dist/utils/libuild-plugin.d.ts +0 -3
- package/dist/utils/libuild-plugin.js +0 -31
- package/dist/utils/libuild-plugin.js.map +0 -1
- package/dist/utils/log.js.map +0 -1
- package/dist/utils/onExit.js.map +0 -1
- package/dist/utils/path.d.ts +0 -1
- package/dist/utils/path.js +0 -19
- package/dist/utils/path.js.map +0 -1
- package/dist/utils/print.js.map +0 -1
- package/dist/utils/style.js.map +0 -1
- package/dist/utils/tspathsTransform.js +0 -91
- package/dist/utils/tspathsTransform.js.map +0 -1
- /package/dist/utils/{tspathsTransform.d.ts → tspath.d.ts} +0 -0
package/dist/locale/zh.js
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var zh_exports = {};
|
|
20
|
+
__export(zh_exports, {
|
|
21
|
+
ZH_LOCALE: () => ZH_LOCALE
|
|
10
22
|
});
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(zh_exports);
|
|
24
|
+
var import_utils = require("@modern-js/utils");
|
|
12
25
|
const noDevTools = `暂无可用的 DevTools,你可以通过以下选项以及对应的链接来了解如何使用。
|
|
13
|
-
- ${
|
|
26
|
+
- ${import_utils.chalk.underline(import_utils.chalk.blue("[Storybook]:"), "https://modernjs.dev/module-tools/guide/basic/using-storybook.html")}
|
|
14
27
|
`;
|
|
15
28
|
const ZH_LOCALE = {
|
|
16
29
|
command: {
|
|
@@ -49,14 +62,14 @@ const ZH_LOCALE = {
|
|
|
49
62
|
},
|
|
50
63
|
errors: {
|
|
51
64
|
externalHelpers: `当前开启了 'externalHelpers' 配置,未找到 "@swc/helpers" 依赖声明,构建产物会存在问题。使用下面的方式进行安装:
|
|
52
|
-
${
|
|
53
|
-
${
|
|
65
|
+
${import_utils.chalk.blue("Package Manager is npm:")}
|
|
66
|
+
${import_utils.chalk.yellow("`npm i @swc/helpers`")} Or ${import_utils.chalk.yellow("`npm i @swc/helpers -D`")}
|
|
54
67
|
|
|
55
|
-
${
|
|
56
|
-
${
|
|
68
|
+
${import_utils.chalk.blue("Package Manager is pnpm:")}
|
|
69
|
+
${import_utils.chalk.yellow("`pnpm i @swc/helpers`")} Or ${import_utils.chalk.yellow("`pnpm i @swc/helpers -D`")}
|
|
57
70
|
|
|
58
|
-
${
|
|
59
|
-
${
|
|
71
|
+
${import_utils.chalk.blue("Package Manager is yarn:")}
|
|
72
|
+
${import_utils.chalk.yellow("`yarn add @swc/helpers`")} Or ${import_utils.chalk.yellow("`yarn add @swc/helpers -D`")}
|
|
60
73
|
`
|
|
61
74
|
},
|
|
62
75
|
warns: {
|
|
@@ -66,5 +79,7 @@ const ZH_LOCALE = {
|
|
|
66
79
|
clearRootPath: "检测到配置中 outDir 与当前项目目录相同,不会自动删除当前产物目录"
|
|
67
80
|
}
|
|
68
81
|
};
|
|
69
|
-
|
|
70
|
-
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
ZH_LOCALE
|
|
85
|
+
});
|
package/dist/plugins.js
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var plugins_exports = {};
|
|
20
|
+
__export(plugins_exports, {
|
|
21
|
+
getPlugins: () => getPlugins
|
|
10
22
|
});
|
|
11
|
-
|
|
12
|
-
|
|
23
|
+
module.exports = __toCommonJS(plugins_exports);
|
|
24
|
+
var import_plugin_changeset = require("@modern-js/plugin-changeset");
|
|
25
|
+
var import_plugin_lint = require("@modern-js/plugin-lint");
|
|
13
26
|
const getPlugins = (runningCmd) => {
|
|
14
27
|
let plugins = [];
|
|
15
28
|
switch (runningCmd) {
|
|
@@ -18,7 +31,7 @@ const getPlugins = (runningCmd) => {
|
|
|
18
31
|
break;
|
|
19
32
|
case "lint":
|
|
20
33
|
plugins = [
|
|
21
|
-
(0,
|
|
34
|
+
(0, import_plugin_lint.lintPlugin)()
|
|
22
35
|
];
|
|
23
36
|
break;
|
|
24
37
|
case "change":
|
|
@@ -27,7 +40,7 @@ const getPlugins = (runningCmd) => {
|
|
|
27
40
|
case "pre":
|
|
28
41
|
case "gen-release-note":
|
|
29
42
|
plugins = [
|
|
30
|
-
(0,
|
|
43
|
+
(0, import_plugin_changeset.changesetPlugin)()
|
|
31
44
|
];
|
|
32
45
|
break;
|
|
33
46
|
default:
|
|
@@ -35,5 +48,7 @@ const getPlugins = (runningCmd) => {
|
|
|
35
48
|
}
|
|
36
49
|
return plugins;
|
|
37
50
|
};
|
|
38
|
-
|
|
39
|
-
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
getPlugins
|
|
54
|
+
});
|
package/dist/types/color.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var color_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(color_exports);
|
package/dist/types/command.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export interface DevCommandOptions {
|
|
|
3
3
|
tsconfig?: string;
|
|
4
4
|
}
|
|
5
5
|
export interface BuildCommandOptions {
|
|
6
|
+
clear: boolean;
|
|
7
|
+
dts: boolean;
|
|
8
|
+
watch: boolean;
|
|
6
9
|
config?: string;
|
|
7
|
-
clear?: boolean;
|
|
8
|
-
dts?: boolean;
|
|
9
10
|
platform?: boolean | string[];
|
|
10
11
|
tsconfig?: string;
|
|
11
|
-
watch?: boolean;
|
|
12
12
|
}
|
package/dist/types/command.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var command_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(command_exports);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var copy_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(copy_exports);
|
package/dist/types/config/dev.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var dev_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(dev_exports);
|
|
@@ -1,21 +1,51 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
1
|
+
import type { BuildOptions } from 'esbuild';
|
|
2
|
+
import type { ImportItem } from '@modern-js/swc-plugins';
|
|
3
|
+
import type { Config } from '@svgr/core';
|
|
4
|
+
import type { CreateFilter } from '@rollup/pluginutils';
|
|
5
|
+
import type { MinifyOptions as TerserMinifyOptions } from 'terser';
|
|
5
6
|
import type { TestConfig } from '@modern-js/types';
|
|
6
7
|
import { internalPreset, presetList } from '../../constants/preset';
|
|
8
|
+
import { ICompiler } from '../esbuild';
|
|
7
9
|
import type { CopyConfig } from './copy';
|
|
8
|
-
import type {
|
|
10
|
+
import type { Dev } from './dev';
|
|
11
|
+
import type { Style, StyleConfig } from './style';
|
|
9
12
|
export * from './style';
|
|
13
|
+
export * from './dev';
|
|
14
|
+
export * from './copy';
|
|
15
|
+
export type HookList = {
|
|
16
|
+
name: string;
|
|
17
|
+
apply: (compiler: ICompiler) => void;
|
|
18
|
+
}[];
|
|
19
|
+
export type EsbuildOptions = (options: BuildOptions) => BuildOptions;
|
|
10
20
|
export type BuildType = 'bundleless' | 'bundle';
|
|
11
|
-
export type Format = 'esm' | 'cjs' | 'umd' | 'iife';
|
|
12
21
|
export type Target = 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext';
|
|
13
|
-
export type
|
|
22
|
+
export type Minify = 'esbuild' | 'terser' | false | TerserMinifyOptions;
|
|
23
|
+
export type Format = 'esm' | 'cjs' | 'umd' | 'iife';
|
|
24
|
+
export type Input = {
|
|
25
|
+
[name: string]: string;
|
|
26
|
+
} | string[];
|
|
27
|
+
export type Globals = Record<any, any>;
|
|
28
|
+
export type Define = Record<string, string>;
|
|
29
|
+
export type Externals = (string | RegExp)[];
|
|
30
|
+
export type Platform = 'node' | 'browser';
|
|
31
|
+
export type SideEffects = RegExp[] | boolean | ((id: string, external: boolean) => boolean);
|
|
32
|
+
/**
|
|
33
|
+
* @experimental
|
|
34
|
+
*/
|
|
35
|
+
export type Redirect = {
|
|
36
|
+
alias?: boolean;
|
|
37
|
+
style?: boolean;
|
|
38
|
+
asset?: boolean;
|
|
39
|
+
};
|
|
14
40
|
export type DTSOptions = {
|
|
15
41
|
abortOnError: boolean;
|
|
16
42
|
distPath: string;
|
|
17
|
-
tsconfigPath: string;
|
|
18
43
|
only: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
* use buildConfig.tsconfig instead.
|
|
47
|
+
*/
|
|
48
|
+
tsconfigPath?: string;
|
|
19
49
|
/**
|
|
20
50
|
* Only for rollup-plugin-dts, see more in https://github.com/Swatinem/rollup-plugin-dts#what-to-expect.
|
|
21
51
|
* We hope you use external to prevent them(like @types) which come from node_modules from be bundled.
|
|
@@ -27,62 +57,88 @@ export type DTSOptions = {
|
|
|
27
57
|
respectExternal: boolean;
|
|
28
58
|
};
|
|
29
59
|
export type DTS = false | Partial<DTSOptions>;
|
|
60
|
+
export interface SvgrOptions extends Config {
|
|
61
|
+
include?: Parameters<CreateFilter>[0];
|
|
62
|
+
exclude?: Parameters<CreateFilter>[1];
|
|
63
|
+
}
|
|
30
64
|
export interface Asset {
|
|
31
|
-
path?:
|
|
32
|
-
limit?:
|
|
33
|
-
publicPath?:
|
|
34
|
-
svgr?: boolean |
|
|
65
|
+
path?: string;
|
|
66
|
+
limit?: number;
|
|
67
|
+
publicPath?: string | ((filePath: string) => string);
|
|
68
|
+
svgr?: boolean | SvgrOptions;
|
|
35
69
|
}
|
|
36
|
-
export type SourceMap = Required<LibuildUserConfig>['sourceMap'];
|
|
37
70
|
export type AutoExternal = boolean | {
|
|
38
71
|
dependencies?: boolean;
|
|
39
72
|
peerDependencies?: boolean;
|
|
40
73
|
};
|
|
41
|
-
export type JSX = 'automatic' | 'transform';
|
|
74
|
+
export type JSX = 'automatic' | 'transform' | 'preserve';
|
|
42
75
|
export type ExternalHelpers = boolean;
|
|
76
|
+
export type BannerAndFooter = {
|
|
77
|
+
js?: string;
|
|
78
|
+
css?: string;
|
|
79
|
+
dts?: string;
|
|
80
|
+
};
|
|
43
81
|
export type AliasOption = Record<string, string> | ((aliases: Record<string, string>) => Record<string, string> | void);
|
|
44
|
-
export type
|
|
45
|
-
|
|
82
|
+
export type Resolve = {
|
|
83
|
+
mainFields?: string[];
|
|
84
|
+
jsExtensions?: string[];
|
|
85
|
+
};
|
|
86
|
+
export type BaseBuildConfig = Omit<Required<PartialBaseBuildConfig>, 'dts' | 'style' | 'alias' | 'sideEffects' | 'asset' | 'resolve'> & {
|
|
87
|
+
sideEffects?: SideEffects;
|
|
46
88
|
dts: false | DTSOptions;
|
|
47
|
-
style:
|
|
48
|
-
tailwindcss: TailwindCSSConfig;
|
|
49
|
-
};
|
|
89
|
+
style: Style;
|
|
50
90
|
alias: Record<string, string>;
|
|
91
|
+
asset: Required<Asset>;
|
|
92
|
+
resolve: Required<Resolve>;
|
|
51
93
|
};
|
|
52
94
|
export type PartialBaseBuildConfig = {
|
|
53
|
-
|
|
95
|
+
resolve?: Resolve;
|
|
96
|
+
footer?: BannerAndFooter;
|
|
97
|
+
banner?: BannerAndFooter;
|
|
54
98
|
buildType?: 'bundleless' | 'bundle';
|
|
55
99
|
format?: Format;
|
|
56
100
|
target?: Target;
|
|
57
101
|
dts?: DTS;
|
|
58
|
-
sourceMap?:
|
|
102
|
+
sourceMap?: boolean | 'inline' | 'external';
|
|
59
103
|
sourceDir?: string;
|
|
60
104
|
copy?: CopyConfig;
|
|
61
105
|
asset?: Asset;
|
|
62
106
|
jsx?: JSX;
|
|
63
107
|
outDir?: string;
|
|
64
108
|
alias?: AliasOption;
|
|
109
|
+
hooks?: HookList;
|
|
65
110
|
input?: Input;
|
|
111
|
+
tsconfig?: string;
|
|
66
112
|
metafile?: boolean;
|
|
67
|
-
platform?:
|
|
68
|
-
splitting?:
|
|
69
|
-
minify?:
|
|
70
|
-
externals?:
|
|
113
|
+
platform?: Platform;
|
|
114
|
+
splitting?: boolean;
|
|
115
|
+
minify?: Minify;
|
|
116
|
+
externals?: Externals;
|
|
71
117
|
autoExternal?: AutoExternal;
|
|
72
|
-
umdGlobals?:
|
|
118
|
+
umdGlobals?: Globals;
|
|
73
119
|
umdModuleName?: ((chunkName: string) => string) | string | undefined;
|
|
74
|
-
define?:
|
|
120
|
+
define?: Define;
|
|
75
121
|
style?: StyleConfig;
|
|
76
|
-
redirect?:
|
|
77
|
-
sideEffects?:
|
|
78
|
-
esbuildOptions?:
|
|
122
|
+
redirect?: Redirect;
|
|
123
|
+
sideEffects?: SideEffects;
|
|
124
|
+
esbuildOptions?: EsbuildOptions;
|
|
125
|
+
/**
|
|
126
|
+
* @internal
|
|
127
|
+
* cache transform result or not
|
|
128
|
+
*/
|
|
129
|
+
transformCache?: boolean;
|
|
79
130
|
externalHelpers?: ExternalHelpers;
|
|
80
131
|
transformImport?: ImportItem[];
|
|
81
132
|
transformLodash?: boolean;
|
|
82
133
|
/**
|
|
83
|
-
*
|
|
134
|
+
* @deprecated
|
|
135
|
+
* @internal
|
|
84
136
|
*/
|
|
85
137
|
disableSwcTransform?: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated
|
|
140
|
+
*/
|
|
141
|
+
sourceType?: 'commonjs' | 'module';
|
|
86
142
|
};
|
|
87
143
|
export type BuildConfig = BaseBuildConfig | BaseBuildConfig[];
|
|
88
144
|
export type PartialBuildConfig = PartialBaseBuildConfig | PartialBaseBuildConfig[];
|
|
@@ -90,27 +146,6 @@ export type BuildPreset = keyof typeof presetList | ((options: {
|
|
|
90
146
|
preset: typeof internalPreset;
|
|
91
147
|
extendPreset: (extendPresetName: keyof typeof internalPreset, extendBuildConfig: PartialBaseBuildConfig) => PartialBaseBuildConfig[];
|
|
92
148
|
}) => PartialBaseBuildConfig[] | Promise<PartialBaseBuildConfig[]>);
|
|
93
|
-
export interface StyleConfig {
|
|
94
|
-
less?: LessConfig;
|
|
95
|
-
sass?: SassConfig;
|
|
96
|
-
postcss?: PostCSSConfig;
|
|
97
|
-
autoModules?: LibuildStyle['autoModules'];
|
|
98
|
-
modules?: LibuildStyle['modules'];
|
|
99
|
-
inject?: LibuildStyle['inject'];
|
|
100
|
-
/**
|
|
101
|
-
* The configuration of `tools.tailwindcss` is provided by `tailwindcss` plugin.
|
|
102
|
-
* Please use `yarn new` or `pnpm new` to enable the corresponding capability.
|
|
103
|
-
* @requires `tailwindcss` plugin
|
|
104
|
-
*/
|
|
105
|
-
tailwindcss?: TailwindCSSConfig;
|
|
106
|
-
}
|
|
107
|
-
export interface StorybookBuildConfig {
|
|
108
|
-
webpack?: WebpackBuilderToolsConfig['webpack'];
|
|
109
|
-
webpackChain?: WebpackBuilderToolsConfig['webpackChain'];
|
|
110
|
-
}
|
|
111
|
-
export interface Dev {
|
|
112
|
-
storybook?: StorybookBuildConfig;
|
|
113
|
-
}
|
|
114
149
|
export interface RuntimeUserConfig {
|
|
115
150
|
[name: string]: any;
|
|
116
151
|
}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var config_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(config_exports);
|
|
18
|
+
__reExport(config_exports, require("./style"), module.exports);
|
|
19
|
+
__reExport(config_exports, require("./dev"), module.exports);
|
|
20
|
+
__reExport(config_exports, require("./copy"), module.exports);
|
|
21
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
+
0 && (module.exports = {
|
|
23
|
+
...require("./style"),
|
|
24
|
+
...require("./dev"),
|
|
25
|
+
...require("./copy")
|
|
4
26
|
});
|
|
5
|
-
const _export_star = require("@swc/helpers/_/_export_star");
|
|
6
|
-
_export_star._(require("./style"), exports);
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,64 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { AcceptedPlugin as PostCSSPlugin, ProcessOptions, Plugin } from 'postcss';
|
|
2
|
+
import type { Options as sassOptions } from '../../../compiled/sass';
|
|
3
|
+
import Less from '../../../compiled/less';
|
|
4
|
+
type LocalsConventionFunction = (originalClassName: string, generatedClassName: string, inputFile: string) => string;
|
|
5
|
+
type GenerateScopedNameFunction = (name: string, filename: string, css: string) => string;
|
|
6
|
+
declare class Loader {
|
|
7
|
+
finalSource?: string | undefined;
|
|
8
|
+
constructor(root: string, plugins: Plugin[]);
|
|
9
|
+
fetch(file: string, relativeTo: string, depTrace: string): Promise<{
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
|
13
|
+
type AdditionalData = string | ((filePath: string) => string);
|
|
14
|
+
export type Modules = {
|
|
15
|
+
localsConvention?: 'camelCase' | 'camelCaseOnly' | 'dashes' | 'dashesOnly' | LocalsConventionFunction;
|
|
16
|
+
scopeBehaviour?: 'global' | 'local';
|
|
17
|
+
globalModulePaths?: RegExp[];
|
|
18
|
+
generateScopedName?: string | GenerateScopedNameFunction;
|
|
19
|
+
hashPrefix?: string;
|
|
20
|
+
exportGlobals?: boolean;
|
|
21
|
+
root?: string;
|
|
22
|
+
resolve?: (file: string) => string | Promise<string>;
|
|
23
|
+
Loader?: typeof Loader;
|
|
24
|
+
getJSON?: (cssFilename: string, json: {
|
|
25
|
+
[name: string]: string;
|
|
26
|
+
}, outputFilename?: string) => void;
|
|
27
|
+
};
|
|
28
|
+
export type AutoModules = boolean | RegExp;
|
|
29
|
+
export type LessOptions = {
|
|
30
|
+
additionalData?: AdditionalData;
|
|
31
|
+
implementation?: object | string;
|
|
32
|
+
lessOptions?: Less.Options;
|
|
33
|
+
};
|
|
34
|
+
export type SassOptions = {
|
|
35
|
+
additionalData?: AdditionalData;
|
|
36
|
+
implementation?: object | string;
|
|
37
|
+
sassOptions?: sassOptions<'async'>;
|
|
38
|
+
};
|
|
39
|
+
export type PostcssOptions = {
|
|
40
|
+
processOptions?: ProcessOptions;
|
|
41
|
+
plugins?: PostCSSPlugin[];
|
|
42
|
+
};
|
|
6
43
|
export type LessConfig = LessOptions | ((options: LessOptions) => LessOptions | void);
|
|
7
44
|
export type SassConfig = SassOptions | ((options: SassOptions) => SassOptions | void);
|
|
8
45
|
export type PostCSSConfigUtils = {
|
|
9
46
|
addPlugins: (plugins: PostCSSPlugin | PostCSSPlugin[]) => void;
|
|
10
47
|
};
|
|
11
48
|
export type PostCSSConfig = PostcssOptions | ((options: PostcssOptions, utils: PostCSSConfigUtils) => PostcssOptions | void);
|
|
12
|
-
export type TailwindCSSConfig = Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
|
49
|
+
export type TailwindCSSConfig = Record<string, any> | ((options: Record<string, any>) => Record<string, any> | void);
|
|
50
|
+
export interface Style extends Required<StyleConfig> {
|
|
51
|
+
sass: SassOptions;
|
|
52
|
+
less: LessOptions;
|
|
53
|
+
postcss: PostcssOptions;
|
|
54
|
+
}
|
|
55
|
+
export interface StyleConfig {
|
|
56
|
+
inject?: boolean;
|
|
57
|
+
sass?: SassConfig;
|
|
58
|
+
less?: LessConfig;
|
|
59
|
+
postcss?: PostCSSConfig;
|
|
60
|
+
autoModules?: boolean | RegExp;
|
|
61
|
+
modules?: Modules;
|
|
62
|
+
tailwindcss?: TailwindCSSConfig;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var style_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(style_exports);
|
package/dist/types/context.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var context_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(context_exports);
|
package/dist/types/dts.d.ts
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
import type { AliasOption } from './config';
|
|
2
|
-
export interface
|
|
1
|
+
import type { AliasOption, BaseBuildConfig, Input } from './config';
|
|
2
|
+
export interface GeneratorDtsConfig {
|
|
3
3
|
appDirectory: string;
|
|
4
|
-
distAbsPath: string;
|
|
5
4
|
tsconfigPath: string;
|
|
6
5
|
watch: boolean;
|
|
7
6
|
sourceDir: string;
|
|
8
7
|
alias: AliasOption;
|
|
9
8
|
abortOnError?: boolean;
|
|
9
|
+
footer?: string;
|
|
10
|
+
banner?: string;
|
|
11
|
+
distPath: string;
|
|
12
|
+
externals: BaseBuildConfig['externals'];
|
|
13
|
+
input: Input;
|
|
14
|
+
respectExternal: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface GeneratedDtsInfo {
|
|
17
|
+
userTsconfig: ITsconfig;
|
|
18
|
+
tempTsconfigPath: string;
|
|
19
|
+
tempDistAbsRootPath: string;
|
|
20
|
+
tempDistAbsSrcPath: string;
|
|
10
21
|
}
|
|
11
22
|
export type TsTarget = 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'esnext';
|
|
12
23
|
export interface ITsconfig {
|
package/dist/types/dts.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var dts_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(dts_exports);
|