@nebula.js/cli-build
Advanced tools
Comparing version 4.10.0 to 4.11.0
@@ -64,3 +64,3 @@ const fs = require('fs'); | ||
cwd = process.cwd(), | ||
argv = { sourcemap: true, inlineDynamicImports: false }, | ||
argv = { sourcemap: true, codeSplit: false }, | ||
core, | ||
@@ -117,2 +117,23 @@ behaviours: { | ||
const output = () => { | ||
const outputConfig = { | ||
banner, | ||
format, | ||
name: outputName, | ||
sourcemap, | ||
globals: { | ||
'@nebula.js/stardust': 'stardust', | ||
}, | ||
}; | ||
if (!argv.codeSplit || format === 'umd') { | ||
outputConfig.file = path.resolve(dir, outputFile); | ||
} else { | ||
outputConfig.dir = path.resolve(dir, outputFile.split('/')[0]); | ||
} | ||
if (argv.codeSplit && format === 'umd') { | ||
outputConfig.inlineDynamicImports = true; | ||
} | ||
return outputConfig; | ||
}; | ||
return { | ||
@@ -177,13 +198,3 @@ input: { | ||
}, | ||
output: { | ||
banner, | ||
format, | ||
inlineDynamicImports: argv.inlineDynamicImports, | ||
file: path.resolve(dir, outputFile), | ||
name: outputName, | ||
sourcemap, | ||
globals: { | ||
'@nebula.js/stardust': 'stardust', | ||
}, | ||
}, | ||
output: output(), | ||
}; | ||
@@ -190,0 +201,0 @@ }; |
@@ -57,5 +57,5 @@ /* eslint global-require: 0, no-param-reassign: 0 */ | ||
}, | ||
inlineDynamicImports: { | ||
codeSplit: { | ||
description: | ||
'In Rollup, inlineDynamicImports option is a configuration option that allows code-splitting while still creating a single bundle.', | ||
'Sets output.dir instead of output.file for code-splitting builds. Sets inlineDynamicImports for umd builds to avoid throwing errors.', | ||
type: 'boolean', | ||
@@ -62,0 +62,0 @@ default: false, |
{ | ||
"name": "@nebula.js/cli-build", | ||
"version": "4.10.0", | ||
"version": "4.11.0", | ||
"description": "", | ||
@@ -36,4 +36,4 @@ "license": "MIT", | ||
"extend": "3.0.2", | ||
"postcss": "^8.4.33", | ||
"rollup": "4.9.6", | ||
"postcss": "^8.4.35", | ||
"rollup": "4.10.0", | ||
"rollup-plugin-postcss": "4.0.2", | ||
@@ -48,3 +48,3 @@ "rollup-plugin-sourcemaps": "0.6.3", | ||
}, | ||
"gitHead": "1be7d26b3c063c05c6d3e85c1ad2b097177dccb3" | ||
"gitHead": "f22c818690d2752b49033ac811052146a820e742" | ||
} |
@@ -33,7 +33,4 @@ # @nebula.js/cli-build | ||
'browser' to exportConditions if it is not present so browser | ||
conditionals in exports are applied. | ||
conditionals in exports are applied. | ||
[boolean] [default: false] | ||
--inlineDynamicImports Inlines dynamic imports, allowing for code-splitting | ||
regardless of format. | ||
[boolean] [default: false] | ||
``` | ||
@@ -40,0 +37,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23225
520
169
+ Added@rollup/rollup-android-arm-eabi@4.10.0(transitive)
+ Added@rollup/rollup-android-arm64@4.10.0(transitive)
+ Added@rollup/rollup-darwin-arm64@4.10.0(transitive)
+ Added@rollup/rollup-darwin-x64@4.10.0(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.10.0(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.10.0(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.10.0(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.10.0(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.10.0(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.10.0(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.10.0(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.10.0(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.10.0(transitive)
+ Addedrollup@4.10.0(transitive)
- Removed@rollup/rollup-android-arm-eabi@4.9.6(transitive)
- Removed@rollup/rollup-android-arm64@4.9.6(transitive)
- Removed@rollup/rollup-darwin-arm64@4.9.6(transitive)
- Removed@rollup/rollup-darwin-x64@4.9.6(transitive)
- Removed@rollup/rollup-linux-arm-gnueabihf@4.9.6(transitive)
- Removed@rollup/rollup-linux-arm64-gnu@4.9.6(transitive)
- Removed@rollup/rollup-linux-arm64-musl@4.9.6(transitive)
- Removed@rollup/rollup-linux-riscv64-gnu@4.9.6(transitive)
- Removed@rollup/rollup-linux-x64-gnu@4.9.6(transitive)
- Removed@rollup/rollup-linux-x64-musl@4.9.6(transitive)
- Removed@rollup/rollup-win32-arm64-msvc@4.9.6(transitive)
- Removed@rollup/rollup-win32-ia32-msvc@4.9.6(transitive)
- Removed@rollup/rollup-win32-x64-msvc@4.9.6(transitive)
- Removedrollup@4.9.6(transitive)
Updatedpostcss@^8.4.35
Updatedrollup@4.10.0