Comparing version 2.2.0 to 2.2.1
@@ -30,3 +30,3 @@ #!/usr/bin/env node | ||
var version = "2.2.0"; | ||
var version = "2.2.1"; | ||
@@ -33,0 +33,0 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { |
@@ -604,2 +604,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// Map './lite' -> './lite.[ext]' | ||
// Return undefined if no match or if it's package.json exports | ||
function getSourcePathFromExportPath(cwd, exportPath) { | ||
@@ -669,3 +670,5 @@ var exts = [ | ||
if (isSingleEntry) { | ||
entryPath = getSourcePathFromExportPath(config.rootDir, "."); | ||
// Use specified string file path if possible, then fallback to the default behavior entry picking logic | ||
// e.g. "exports": "./dist/index.js" -> use "./index.<ext>" as entry | ||
entryPath = entryPath || getSourcePathFromExportPath(config.rootDir, ".") || ""; | ||
} | ||
@@ -672,0 +675,0 @@ bundleOrWatch = function(rollupConfig) { |
{ | ||
"name": "bunchee", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "zero config bundler for js/ts/jsx libraries", | ||
@@ -5,0 +5,0 @@ "bin": { |
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
48184
1160