New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →

@nebula.js/cli-build

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

to
4.0.1

@@ -80,3 +80,3 @@ const fs = require('fs');

pkg = reactNative ? require(path.resolve(reactNativePath, 'package.json')) : pkg; // eslint-disable-line
const { sourcemap, replacementStrings = {}, typescript } = argv;
const { sourcemap, replacementStrings = {}, typescript, preferBuiltins, browser } = argv;
const banner = getBanner({ pkg });

@@ -130,2 +130,4 @@ const outputName = getOutputName({ pkg, config: argv });

extensions,
browser,
preferBuiltins,
}),

@@ -154,3 +156,3 @@ commonjs({

}),
sourcemaps(),
...[sourcemap ? sourcemaps() : undefined],
postcss({}),

@@ -157,0 +159,0 @@ ...[typescript ? typescriptPlugin() : false],

@@ -45,2 +45,14 @@ /* eslint global-require: 0, no-param-reassign: 0 */

},
preferBuiltins: {
description:
'In Rollup, preferBuiltins is a configuration option that specifies whether to use Node.js built-in modules (such as fs or path) when bundling for Node.js environment.',
type: 'boolean',
default: true,
},
browser: {
description:
'In Rollup, the browser option is a configuration option that specifies whether the bundle is intended to run in a browser environment.',
type: 'boolean',
default: false,
},
};

@@ -47,0 +59,0 @@

{
"name": "@nebula.js/cli-build",
"version": "4.0.0",
"version": "4.0.1",
"description": "",

@@ -47,3 +47,3 @@ "license": "MIT",

},
"gitHead": "25856057bb28d545839e8118b0fd96db1af6f4aa"
"gitHead": "c105707099dc79c405f01d65cc338f1614ea9750"
}

@@ -29,2 +29,4 @@ # @nebula.js/cli-build

--typescript Enable typescript bundling [boolean] [default: false]
--preferBuiltins Configuration option that specifies whether to use Node.js built-in modules [boolean] [default: true]
--browser Instructs the build to use the browser module resolutions in package.json and adds 'browser' to exportConditions if it is not present so browser conditionals in exports are applied. [boolean] [default: false]
```

@@ -31,0 +33,0 @@