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

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
147
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 4.0.0 to 4.0.1

2

dist/bin/cli.js

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

var version = "4.0.0";
var version = "4.0.1";

@@ -60,0 +60,0 @@ const helpMessage = `

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

Object.keys(exportPaths).forEach(async (entryExport)=>{
// TODO: improve the source detection
const exportCond = exportPaths[entryExport];

@@ -773,11 +772,7 @@ const buildConfigs = [

if (!dts) {
if (exportCond['edge-light']) {
buildConfigs.push(createBuildConfig('edge-light', exportCond));
for (const exportType of availableExportConventions){
if (exportCond[exportType]) {
buildConfigs.push(createBuildConfig(exportType, exportCond));
}
}
if (exportCond['react-server']) {
buildConfigs.push(createBuildConfig('react-server', exportCond));
}
if (exportCond['react-native']) {
buildConfigs.push(createBuildConfig('react-native', exportCond));
}
}

@@ -799,4 +794,9 @@ async function createBuildConfig(exportType, exportCondRef) {

}
const source = entryPath || await getSourcePathFromExportPath(cwd, entryExport, exportType);
if (!source) return undefined;
let source = entryPath;
if (!source) {
source = await getSourcePathFromExportPath(cwd, entryExport, exportType);
}
if (!source) {
return undefined;
}
const exportCondition = {

@@ -1073,3 +1073,3 @@ source,

if (result.length === 0) {
logger.warn('The "src" directory does not contain any entry files. ' + 'For proper usage, please refer to the following link: ' + 'https://github.com/huozhi/bunchee?tab=readme-ov-file#usage');
logger.warn('The "src" directory does not contain any entry files. ' + 'For proper usage, please refer to the following link: ' + 'https://github.com/huozhi/bunchee#usage');
}

@@ -1076,0 +1076,0 @@ logSizeStats();

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

@@ -26,3 +26,4 @@ "bin": "./dist/bin/cli.js",

"zero-config",
"library"
"library",
"server components"
],

@@ -38,3 +39,3 @@ "files": [

"engines": {
"node": ">= 16"
"node": ">= 18.0.0"
},

@@ -41,0 +42,0 @@ "author": "huozhi (github.com/huozhi)",

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