@nebula.js/cli-build 5.7.0 → 5.8.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/lib/config.js +8 -2
- package/lib/init-config.js +1 -1
- package/lib/systemjs.js +2 -2
- package/package.json +12 -12
package/lib/config.js
CHANGED
|
@@ -53,6 +53,12 @@ const getExternalDefault = ({ pkg }) => {
|
|
|
53
53
|
return Object.keys(peers);
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
+
const getExternalCore = ({ pkg }) => {
|
|
57
|
+
const defaultExternal = ['@nebula.js/stardust', /^@qlik\/api\//];
|
|
58
|
+
const peers = Object.keys(pkg.peerDependencies || {});
|
|
59
|
+
return [...defaultExternal, ...peers];
|
|
60
|
+
};
|
|
61
|
+
|
|
56
62
|
const getOutputFileDefault = ({ pkg }) => pkg.main;
|
|
57
63
|
|
|
58
64
|
const getOutputNameDefault = ({ pkg }) => pkg.name.split('/').reverse()[0];
|
|
@@ -105,7 +111,7 @@ const config = ({
|
|
|
105
111
|
}
|
|
106
112
|
}
|
|
107
113
|
|
|
108
|
-
const external = getExternal({ pkg, config: argv });
|
|
114
|
+
const external = core ? getExternalCore({ pkg }) : getExternal({ pkg, config: argv });
|
|
109
115
|
// stardust should always be external
|
|
110
116
|
if (external.indexOf('@nebula.js/stardust') === -1) {
|
|
111
117
|
// eslint-disable-next-line no-console
|
|
@@ -128,7 +134,7 @@ const config = ({
|
|
|
128
134
|
} else {
|
|
129
135
|
outputConfig.dir = path.resolve(dir, outputFile.split('/')[0]);
|
|
130
136
|
}
|
|
131
|
-
if (
|
|
137
|
+
if (format === 'umd') {
|
|
132
138
|
outputConfig.inlineDynamicImports = true;
|
|
133
139
|
}
|
|
134
140
|
return outputConfig;
|
package/lib/init-config.js
CHANGED
|
@@ -52,7 +52,7 @@ const options = {
|
|
|
52
52
|
description:
|
|
53
53
|
'In Rollup, the browser option is a configuration option that specifies whether the bundle is intended to run in a browser environment.',
|
|
54
54
|
type: 'boolean',
|
|
55
|
-
default:
|
|
55
|
+
default: true,
|
|
56
56
|
},
|
|
57
57
|
codeSplit: {
|
|
58
58
|
description:
|
package/lib/systemjs.js
CHANGED
|
@@ -6,8 +6,8 @@ const systemjsBehaviours = {
|
|
|
6
6
|
'picasso-plugin-q',
|
|
7
7
|
'react',
|
|
8
8
|
'react-dom',
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/^(?!@qlik-trial\/qmfe-data-client-parcels)(@qlik-trial\/qmfe-)/,
|
|
10
|
+
/^@qlik\/api\//,
|
|
11
11
|
];
|
|
12
12
|
const { external } = cfg.systemjs || {};
|
|
13
13
|
return Array.isArray(external) ? external : defaultExternal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/cli-build",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QlikTech International AB",
|
|
@@ -21,28 +21,28 @@
|
|
|
21
21
|
"lint": "eslint src"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/cli": "7.
|
|
25
|
-
"@babel/core": "7.
|
|
26
|
-
"@babel/plugin-transform-react-jsx": "7.25.
|
|
27
|
-
"@babel/preset-env": "7.
|
|
24
|
+
"@babel/cli": "7.25.9",
|
|
25
|
+
"@babel/core": "7.26.0",
|
|
26
|
+
"@babel/plugin-transform-react-jsx": "7.25.9",
|
|
27
|
+
"@babel/preset-env": "7.26.0",
|
|
28
28
|
"@rollup/plugin-babel": "6.0.4",
|
|
29
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
29
|
+
"@rollup/plugin-commonjs": "28.0.1",
|
|
30
30
|
"@rollup/plugin-json": "6.1.0",
|
|
31
|
-
"@rollup/plugin-node-resolve": "15.
|
|
31
|
+
"@rollup/plugin-node-resolve": "15.3.0",
|
|
32
32
|
"@rollup/plugin-replace": "6.0.1",
|
|
33
33
|
"@rollup/plugin-terser": "0.4.4",
|
|
34
34
|
"chalk": "4.1.2",
|
|
35
35
|
"extend": "3.0.2",
|
|
36
|
-
"postcss": "^8.4.
|
|
37
|
-
"rollup": "4.
|
|
36
|
+
"postcss": "^8.4.49",
|
|
37
|
+
"rollup": "4.27.2",
|
|
38
38
|
"rollup-plugin-postcss": "4.0.2",
|
|
39
39
|
"rollup-plugin-sourcemaps": "0.6.3",
|
|
40
40
|
"yargs": "17.7.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@rollup/plugin-typescript": "12.1.
|
|
43
|
+
"@rollup/plugin-typescript": "12.1.1",
|
|
44
44
|
"tslib": "*",
|
|
45
|
-
"typescript": ">=5.
|
|
45
|
+
"typescript": ">=5.6.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "7bbcb057c2dadd606a2a5377a41ba5030381968c"
|
|
48
48
|
}
|