@nebula.js/cli-build 6.0.0-alpha.0 → 6.0.0-alpha.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 CHANGED
@@ -67,7 +67,7 @@ const config = ({
67
67
  mode = 'production',
68
68
  format = 'umd',
69
69
  cwd = process.cwd(),
70
- argv = { sourcemap: true, codeSplit: false },
70
+ argv = { sourcemap: true, codeSplit: false, inlineDynamic: false },
71
71
  core,
72
72
  behaviours: {
73
73
  getExternal = getExternalDefault,
@@ -134,7 +134,7 @@ const config = ({
134
134
  } else {
135
135
  outputConfig.dir = path.resolve(dir, outputFile.split('/')[0]);
136
136
  }
137
- if (format === 'umd') {
137
+ if (format === 'umd' || argv.inlineDynamic) {
138
138
  outputConfig.inlineDynamicImports = true;
139
139
  }
140
140
  return outputConfig;
@@ -60,6 +60,11 @@ const options = {
60
60
  type: 'boolean',
61
61
  default: false,
62
62
  },
63
+ inlineDynamic: {
64
+ description: 'Sets inlineDynamicImports to true for all builds to help with certain dependencies',
65
+ type: 'boolean',
66
+ default: false,
67
+ },
63
68
  };
64
69
 
65
70
  // nebula build --watch - watch umd bundle
package/lib/systemjs.js CHANGED
@@ -7,7 +7,6 @@ const systemjsBehaviours = {
7
7
  'react',
8
8
  'react-dom',
9
9
  /^(?!@qlik-trial\/qmfe-data-client-parcels)(@qlik-trial\/qmfe-)/,
10
- /^@qlik\/api\//,
11
10
  ];
12
11
  const { external } = cfg.systemjs || {};
13
12
  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": "6.0.0-alpha.0",
3
+ "version": "6.0.0-alpha.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -44,5 +44,5 @@
44
44
  "tslib": "*",
45
45
  "typescript": ">=5.9.2"
46
46
  },
47
- "gitHead": "1f18f76bea27f8f54a324d36ebf2378db3be5865"
47
+ "gitHead": "3b1256a75b9414e72f0de83b6e2ee81656dbc2c3"
48
48
  }