@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 +2 -2
- package/lib/init-config.js +5 -0
- package/lib/systemjs.js +0 -1
- package/package.json +2 -2
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;
|
package/lib/init-config.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nebula.js/cli-build",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
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": "
|
|
47
|
+
"gitHead": "3b1256a75b9414e72f0de83b6e2ee81656dbc2c3"
|
|
48
48
|
}
|