Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
@@ -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
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
62973
608