Socket
Socket
Sign inDemoInstall

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
143
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.3 to 2.0.4

2

dist/cli.js

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

var version = "2.0.3";
var version = "2.0.4";

@@ -93,0 +93,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> js features target: swc target es versions. "es5" by default\n --runtime <runtime> build runtime: "nodejs", "browser". "browser" by default\n --sourcemap enable sourcemap generation, false by default\n --cwd <cwd> specify current working directory\n -h, --help output usage information\n';

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

var _c;
var tsCompilerOptions = _a.tsCompilerOptions;
var tsconfigPath = _a.tsconfigPath, tsCompilerOptions = _a.tsCompilerOptions;
var externals = [

@@ -166,3 +166,3 @@ pkg.peerDependencies,

exclude: "node_modules",
tsconfig: "tsconfig.json",
tsconfig: tsconfigPath,
jsc: tslib.__assign({

@@ -174,11 +174,3 @@ target: jscTarget,

syntax: useTypescript ? "typescript" : "ecmascript"
}, _b[useTypescript ? "tsx" : "jsx"] = true, _b.privateMethod = true, _b.classPrivateProperty = true, _b.exportDefaultFrom = true, _b),
transform: {
react: {
runtime: [
"react-jsx",
"react-jsx-dev"
].includes(tsCompilerOptions === null || tsCompilerOptions === void 0 ? void 0 : tsCompilerOptions.jsx) ? "automatic" : "classic"
}
}
}, _b[useTypescript ? "tsx" : "jsx"] = true, _b.privateMethod = true, _b.classPrivateProperty = true, _b.exportDefaultFrom = true, _b)
}, minify && {

@@ -353,5 +345,6 @@ minify: tslib.__assign(tslib.__assign({}, minifyOptions), {

var tsCompilerOptions = {};
var tsconfigPath;
if (useTypescript) {
var ts = resolveTypescript();
var tsconfigPath = path.resolve(config.rootDir, "tsconfig.json");
tsconfigPath = path.resolve(config.rootDir, "tsconfig.json");
if (fs__default["default"].existsSync(tsconfigPath)) {

@@ -362,5 +355,7 @@ var tsconfigJSON = ts.readConfigFile(tsconfigPath, ts.sys.readFile).config;

}
var inputOptions = createInputConfig(entry, pkg, options, {
var typescriptOptions = {
tsconfigPath: tsconfigPath,
tsCompilerOptions: tsCompilerOptions
});
};
var inputOptions = createInputConfig(entry, pkg, options, typescriptOptions);
var outputExports = options.exportCondition ? getSubExportDist(pkg, options.exportCondition.export) : getExportDist(pkg);

@@ -372,5 +367,3 @@ var outputConfigs = outputExports.map(function(exportDist) {

useTypescript: useTypescript
}), pkg, {
tsCompilerOptions: tsCompilerOptions
});
}), pkg, typescriptOptions);
});

@@ -384,5 +377,3 @@ if (file) {

useTypescript: useTypescript
}), pkg, {
tsCompilerOptions: tsCompilerOptions
}),
}), pkg, typescriptOptions),
];

@@ -389,0 +380,0 @@ }

{
"name": "bunchee",
"version": "2.0.3",
"version": "2.0.4",
"description": "zero config bundler for js/ts/jsx libraries",

@@ -35,2 +35,6 @@ "bin": {

"author": "huozhi (github.com/huozhi)",
"repository": {
"type": "git",
"url": "https://github.com/huozhi/bunchee.git"
},
"license": "MIT",

@@ -46,3 +50,3 @@ "dependencies": {

"rollup-plugin-preserve-shebang": "1.0.1",
"rollup-plugin-swc3": "0.4.1",
"rollup-plugin-swc3": "0.5.0",
"tslib": "2.4.0"

@@ -49,0 +53,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