Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nebula.js/cli-build

Package Overview
Dependencies
Maintainers
7
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebula.js/cli-build - npm Package Compare versions

Comparing version 4.10.0 to 4.11.0

35

lib/config.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc