@nebula.js/cli-build 5.9.0 → 5.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/lib/config.js +9 -3
- package/package.json +8 -8
package/lib/config.js
CHANGED
|
@@ -3,13 +3,13 @@ const path = require('path');
|
|
|
3
3
|
const babel = require('@rollup/plugin-babel');
|
|
4
4
|
const postcss = require('rollup-plugin-postcss');
|
|
5
5
|
const replace = require('@rollup/plugin-replace');
|
|
6
|
-
const sourcemaps = require('rollup-plugin-sourcemaps');
|
|
7
6
|
const json = require('@rollup/plugin-json');
|
|
8
7
|
const { nodeResolve } = require('@rollup/plugin-node-resolve');
|
|
9
8
|
const commonjs = require('@rollup/plugin-commonjs');
|
|
10
9
|
const terser = require('@rollup/plugin-terser');
|
|
11
10
|
const jsxPlugin = require('@babel/plugin-transform-react-jsx');
|
|
12
11
|
const babelPreset = require('@babel/preset-env');
|
|
12
|
+
const { visualizer } = require('rollup-plugin-visualizer');
|
|
13
13
|
|
|
14
14
|
const resolveNative = require('./resolveNative');
|
|
15
15
|
|
|
@@ -170,7 +170,7 @@ const config = ({
|
|
|
170
170
|
babel({
|
|
171
171
|
babelHelpers: 'bundled',
|
|
172
172
|
babelrc: false,
|
|
173
|
-
inputSourceMap:
|
|
173
|
+
inputSourceMap: sourcemap,
|
|
174
174
|
extensions,
|
|
175
175
|
presets: [
|
|
176
176
|
[
|
|
@@ -185,7 +185,6 @@ const config = ({
|
|
|
185
185
|
],
|
|
186
186
|
plugins: [[jsxPlugin]],
|
|
187
187
|
}),
|
|
188
|
-
...[sourcemap ? sourcemaps() : undefined],
|
|
189
188
|
postcss({}),
|
|
190
189
|
...[typescript ? typescriptPlugin() : false],
|
|
191
190
|
...[
|
|
@@ -197,6 +196,13 @@ const config = ({
|
|
|
197
196
|
})
|
|
198
197
|
: false,
|
|
199
198
|
],
|
|
199
|
+
...[
|
|
200
|
+
mode === 'development'
|
|
201
|
+
? visualizer({
|
|
202
|
+
filename: 'bundle-analysis.html',
|
|
203
|
+
})
|
|
204
|
+
: false,
|
|
205
|
+
],
|
|
200
206
|
].filter(Boolean),
|
|
201
207
|
},
|
|
202
208
|
output: output(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/cli-build",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@babel/cli": "7.26.4",
|
|
25
|
-
"@babel/core": "7.26.
|
|
25
|
+
"@babel/core": "7.26.7",
|
|
26
26
|
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
27
|
-
"@babel/preset-env": "7.26.
|
|
27
|
+
"@babel/preset-env": "7.26.7",
|
|
28
28
|
"@rollup/plugin-babel": "6.0.4",
|
|
29
29
|
"@rollup/plugin-commonjs": "28.0.2",
|
|
30
30
|
"@rollup/plugin-json": "6.1.0",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"@rollup/plugin-terser": "0.4.4",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
35
|
"extend": "3.0.2",
|
|
36
|
-
"postcss": "^8.
|
|
37
|
-
"rollup": "4.
|
|
36
|
+
"postcss": "^8.5.1",
|
|
37
|
+
"rollup": "4.32.0",
|
|
38
38
|
"rollup-plugin-postcss": "4.0.2",
|
|
39
|
-
"rollup-plugin-
|
|
39
|
+
"rollup-plugin-visualizer": "5.14.0",
|
|
40
40
|
"yargs": "17.7.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@rollup/plugin-typescript": "12.1.2",
|
|
44
44
|
"tslib": "*",
|
|
45
|
-
"typescript": ">=5.7.
|
|
45
|
+
"typescript": ">=5.7.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d924b48c6796567824861d307a1f89ac12c727b7"
|
|
48
48
|
}
|