@cmmn/tools 1.9.1 → 1.9.2
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/bundle/bundle.js +1 -0
- package/bundle/esbuild.config.js +3 -1
- package/package.json +2 -2
package/bundle/bundle.js
CHANGED
package/bundle/esbuild.config.js
CHANGED
|
@@ -258,11 +258,12 @@ export class ConfigCreator {
|
|
|
258
258
|
outdir: 'dist/bundle',
|
|
259
259
|
metafile: true,
|
|
260
260
|
absWorkingDir: this.root,
|
|
261
|
+
treeShaking: this.options.minify,
|
|
261
262
|
format: ({
|
|
262
263
|
es: 'esm'
|
|
263
264
|
})[format] ?? format,
|
|
264
265
|
outExtension: {
|
|
265
|
-
'.js': {
|
|
266
|
+
'.js': (this.options.minify ? '.min' : '') + {
|
|
266
267
|
es: '.js',
|
|
267
268
|
cjs: '.cjs'
|
|
268
269
|
}[format]
|
|
@@ -274,6 +275,7 @@ export class ConfigCreator {
|
|
|
274
275
|
'process.env.NODE_ENV': '"production"'
|
|
275
276
|
},
|
|
276
277
|
publicPath: '/',
|
|
278
|
+
alias: this.options.alias,
|
|
277
279
|
plugins: [
|
|
278
280
|
lessLoader(),
|
|
279
281
|
...(this.options.html ? [htmlPlugin({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmmn/tools",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Compilation, bundling, code generator, testing.",
|
|
5
5
|
"main": "dist/rollup.config.js",
|
|
6
6
|
"type": "module",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
},
|
|
65
65
|
"author": "",
|
|
66
66
|
"license": "ISC",
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "2b9d0cf9093d3cde17f2d222604866a2c253ebdc"
|
|
68
68
|
}
|