@cmmn/tools 1.6.5 → 1.6.6
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/rollup.config.js +5 -4
- package/package.json +3 -2
package/bundle/rollup.config.js
CHANGED
|
@@ -14,7 +14,7 @@ import html from '@open-wc/rollup-plugin-html';
|
|
|
14
14
|
import json from '@rollup/plugin-json';
|
|
15
15
|
import alias from '@rollup/plugin-alias';
|
|
16
16
|
import replace from '@rollup/plugin-replace';
|
|
17
|
-
|
|
17
|
+
import sourcemaps from 'rollup-plugin-sourcemaps';
|
|
18
18
|
/**
|
|
19
19
|
* @typedef {import(rollup).RollupOptions} RollupOptions
|
|
20
20
|
* @typedef {import(rollup).OutputOptions} OutputOptions
|
|
@@ -142,6 +142,7 @@ export class ConfigCreator {
|
|
|
142
142
|
'node_modules/ulid/*.js'
|
|
143
143
|
]
|
|
144
144
|
}),
|
|
145
|
+
sourcemaps(),
|
|
145
146
|
builtins(),
|
|
146
147
|
/*this.options.styles === 'modules' ? postCSS({
|
|
147
148
|
mode: [
|
|
@@ -182,6 +183,9 @@ export class ConfigCreator {
|
|
|
182
183
|
if (this.options.html || this.options.input.endsWith('.html')) {
|
|
183
184
|
result.push(this.html);
|
|
184
185
|
}
|
|
186
|
+
if (this.options.stats) {
|
|
187
|
+
result.push(this.visualizer);
|
|
188
|
+
}
|
|
185
189
|
if (this.options.minify) {
|
|
186
190
|
result.push(terser({
|
|
187
191
|
module: true,
|
|
@@ -198,9 +202,6 @@ export class ConfigCreator {
|
|
|
198
202
|
if (this.options.devServer) {
|
|
199
203
|
result.push(this.devServer, this.livereload);
|
|
200
204
|
}
|
|
201
|
-
if (this.options.stats) {
|
|
202
|
-
result.push(this.visualizer);
|
|
203
|
-
}
|
|
204
205
|
return result;
|
|
205
206
|
}
|
|
206
207
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmmn/tools",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "Compilation, bundling, code generator, testing.",
|
|
5
5
|
"main": "dist/rollup.config.js",
|
|
6
6
|
"type": "module",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
62
62
|
"rollup-plugin-postcss": "4.x.x",
|
|
63
63
|
"rollup-plugin-serve": "^1.1.0",
|
|
64
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
64
65
|
"rollup-plugin-string": "^3.0.0",
|
|
65
66
|
"rollup-plugin-styles": "^4",
|
|
66
67
|
"rollup-plugin-terser": "^7",
|
|
@@ -73,5 +74,5 @@
|
|
|
73
74
|
},
|
|
74
75
|
"author": "",
|
|
75
76
|
"license": "ISC",
|
|
76
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "bf25aab44ebf4d1400d2ba6130a0caddf42677e7"
|
|
77
78
|
}
|