Socket
Socket
Sign inDemoInstall

bunchee

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.1 to 3.7.2

3

dist/cli.d.ts

@@ -1,1 +0,2 @@

#!/usr/bin/env node
export { }

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

var version = "3.7.1";
var version = "3.7.2";

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

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

const commonPlugins = [
swcPreserveDirectivePlugin__default.default(),
sizePlugin

@@ -527,2 +526,3 @@ ];

...commonPlugins,
swcPreserveDirectivePlugin__default.default(),
replace__default.default({

@@ -905,2 +905,5 @@ values: getBuildEnv(options.env || []),

result = await Promise.all(assetsJobs.concat(typesJobs));
if (result.length === 0) {
console.warn('Warning: 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');
}
logSizeStats();

@@ -907,0 +910,0 @@ return result;

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

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

@@ -204,2 +204,58 @@ # bunchee

### Wildcard Exports (Experimental)
Bunchee implements the Node.js feature of using the asterisk `*` as a wildcard to match the exportable entry files.
For example:
```json
{
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./*": {
"import": "./dist/*.mjs",
"require": "./dist/*.cjs"
}
}
}
```
The asterisk `*` will be replaced with your entry files, such as:
```
- my-lib/
|- src/
|- foo/
|- index.ts
|- bar.ts
|- index.ts
|- package.json
```
This will match the export names `"foo"` and `"bar"` and will be treated as the new entries as they matched the `./*` wildcard in `my-lib` folder.
```json
{
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./foo": {
"import": "./dist/foo/index.mjs",
"require": "./dist/foo/index.cjs"
},
"./bar": {
"import": "./dist/bar.mjs",
"require": "./dist/bar.cjs"
}
}
}
```
> Note: Wildcard Exports currently only supports the exports key `"./*"`, which will match all the available entries.
### TypeScript

@@ -206,0 +262,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc