@nebula.js/cli-build 5.7.1 → 5.8.1

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 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 (argv.codeSplit && format === 'umd') {
137
+ if (format === 'umd') {
132
138
  outputConfig.inlineDynamicImports = true;
133
139
  }
134
140
  return outputConfig;
@@ -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: false,
55
+ default: true,
56
56
  },
57
57
  codeSplit: {
58
58
  description:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli-build",
3
- "version": "5.7.1",
3
+ "version": "5.8.1",
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.24.8",
25
- "@babel/core": "7.25.2",
26
- "@babel/plugin-transform-react-jsx": "7.25.2",
27
- "@babel/preset-env": "7.25.3",
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.0",
29
+ "@rollup/plugin-commonjs": "28.0.1",
30
30
  "@rollup/plugin-json": "6.1.0",
31
- "@rollup/plugin-node-resolve": "15.2.3",
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.41",
37
- "rollup": "4.22.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.0",
43
+ "@rollup/plugin-typescript": "12.1.1",
44
44
  "tslib": "*",
45
- "typescript": ">=5.5.4"
45
+ "typescript": ">=5.6.3"
46
46
  },
47
- "gitHead": "0d660adfd310080511eda6d5916f31c4db9f1fc4"
47
+ "gitHead": "6efb75231d6d44753ce63edfee116449c2c60864"
48
48
  }