makepack 1.7.10 → 1.7.11
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/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import dts from "rollup-plugin-dts";
|
|
|
7
7
|
import json from '@rollup/plugin-json';
|
|
8
8
|
import terser from "@rollup/plugin-terser";
|
|
9
9
|
|
|
10
|
-
async function
|
|
10
|
+
async function bundler(args, spinner) {
|
|
11
11
|
const isTs = args.entry.endsWith('.ts') || args.entry.endsWith('.tsx')
|
|
12
12
|
|
|
13
13
|
const config = {
|
|
@@ -22,7 +22,7 @@ async function bind(args, spinner) {
|
|
|
22
22
|
browser: false
|
|
23
23
|
}),
|
|
24
24
|
commonjs(),
|
|
25
|
-
|
|
25
|
+
typescript({
|
|
26
26
|
tsconfig: false,
|
|
27
27
|
target: "ES2017",
|
|
28
28
|
module: "ESNext",
|
|
@@ -34,8 +34,9 @@ async function bind(args, spinner) {
|
|
|
34
34
|
importHelpers: true,
|
|
35
35
|
forceConsistentCasingInFileNames: true,
|
|
36
36
|
declaration: false,
|
|
37
|
-
emitDeclarationOnly: false
|
|
38
|
-
|
|
37
|
+
emitDeclarationOnly: false,
|
|
38
|
+
rootDir: path.resolve(process.cwd(), args.rootdir),
|
|
39
|
+
}),
|
|
39
40
|
args.minify ? terser() : null,
|
|
40
41
|
]
|
|
41
42
|
};
|
|
@@ -46,7 +47,8 @@ async function bind(args, spinner) {
|
|
|
46
47
|
format: "esm",
|
|
47
48
|
sourcemap: args.sourcemap,
|
|
48
49
|
compact: true,
|
|
49
|
-
strict: true
|
|
50
|
+
strict: true,
|
|
51
|
+
exports: "named"
|
|
50
52
|
};
|
|
51
53
|
if (!args.bundle) {
|
|
52
54
|
esm.preserveModules = true
|
|
@@ -110,4 +112,4 @@ async function bind(args, spinner) {
|
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
export default
|
|
115
|
+
export default bundler;
|