Socket
Socket
Sign inDemoInstall

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunchee - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

2

dist/cli.js

@@ -78,3 +78,3 @@ #!/usr/bin/env node

var version = "2.0.0-alpha.1";
var version = "2.0.0-alpha.2";

@@ -81,0 +81,0 @@ var helpMessage = "\nUsage: bunchee [options]\n\nOptions:\n -v, --version output the version number\n -w, --watch watch src files changes\n -m, --minify compress output. false by default\n -o, --output <file> specify output filename\n -f, --format <format> specify bundle type: \"esm\", \"cjs\", \"umd\". \"esm\" by default\n -e, --external <mod> specify an external dependency\n --target <target> build environment, use \"node\" for nodejs runtime\n --no-sourcemap disable sourcemap generation, sourcemap generation is enabled by default\n --cwd <cwd> specify current working directory\n -h, --help output usage information\n";

@@ -94,7 +94,7 @@ Object.defineProperty(exports, '__esModule', { value: true });

var _b;
var externals = [pkg.peerDependencies, pkg.dependencies]
var externals = [pkg.peerDependencies, pkg.dependencies, pkg.peerDependenciesMeta]
.filter(function (n) { return Boolean(n); })
.map(function (o) { return Object.keys(o); })
.reduce(function (a, b) { return a.concat(b); }, [])
.concat((_b = options.external) !== null && _b !== void 0 ? _b : []);
.concat(((_b = options.external) !== null && _b !== void 0 ? _b : []).concat(pkg.name ? [pkg.name] : []));
var useTypescript = options.useTypescript, target = options.target, _c = options.minify, minify = _c === void 0 ? false : _c;

@@ -119,12 +119,2 @@ var typings = pkg.types || pkg.typings;

}))),
minify && rollupPluginTerser.terser({
compress: {
"keep_infinity": true,
},
format: {
"comments": /^\s*([@#]__[A-Z]__\s*$|@[a-zA-Z]\s*$)/,
"wrap_func_args": false,
"preserve_annotations": true,
}
}),
useTypescript && minify && rollupPluginTerser.terser({

@@ -131,0 +121,0 @@ compress: {

@@ -20,2 +20,3 @@ import type { InputOptions, OutputOptions, RollupOptions } from "rollup";

peerDependencies?: Record<string, string>;
peerDependenciesMeta?: Record<string, Record<string, string>>;
exports?: string | Record<string, ExportCondition>;

@@ -22,0 +23,0 @@ types?: string;

{
"name": "bunchee",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "zero config bundler for js/ts/jsx libraries",

@@ -5,0 +5,0 @@ "bin": {

Sorry, the diff of this file is not supported yet

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