bunchee

Zero config bundler for ECMAScript and TypeScript packages

Downloads
72K
Stars
926
Committers
23

Bot releases are hidden (Show)

bunchee - v5.0.0-beta.6

Published by huozhi 7 months ago

bunchee - v5.0.0-beta.5

Published by huozhi 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v5.0.0-beta.4...v5.0.0-beta.5

bunchee - v5.0.0-beta.4

Published by huozhi 7 months ago

Feature

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v5.0.0-beta.3...v5.0.0-beta.4

bunchee - v5.0.0-beta.3

Published by huozhi 7 months ago

What's Changed

Full Changelog: https://github.com/huozhi/bunchee/compare/v5.0.0-beta.2...v5.0.0-beta.3

bunchee - v5.0.0-beta.2

Published by huozhi 7 months ago

Features

Improvements

Patches

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v5.0.0-beta.1...v5.0.0-beta.2

bunchee - v5.0.0-beta.1

Published by huozhi 8 months ago

Feature

Changes

Breaking change

  • Deprecate wildcard exports. See #469

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.8...v5.0.0-beta.1

bunchee - v4.4.8

Published by huozhi 8 months ago

Patches

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.7...v4.4.8

bunchee - v4.4.7

Published by huozhi 8 months ago

Patches

Misc

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.6...v4.4.7

bunchee - v4.4.6

Published by huozhi 8 months ago

Patches

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.5...v4.4.6

bunchee - v4.4.5

Published by huozhi 9 months ago

Patches

Drop the @rollup/plugin-esm-shim plugin and rewrite one with AST parsing, this avoids lots of issues that with current rollup esm shim plugin.

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.4...v4.4.5

bunchee - v4.4.4

Published by huozhi 9 months ago

Patches

Misc

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.3...v4.4.4

bunchee - v4.4.3

Published by huozhi 9 months ago

Patches & Improvements

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.2...v4.4.3

bunchee - v4.4.2

Published by huozhi 9 months ago

Patches

This release fixes some important issues when users are suffering with ts module resolving with multiple exports when modules resolution set to "node". Previously we're doing import like <pkg>/<module> that supports "bundler" module resolution for ts types.
Now we're changing to relative imports which will import the correct path for both CJS and ESM.

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.1...v4.4.2

bunchee - v4.4.1

Published by huozhi 9 months ago

Patches

Improve the stablility of the features we have in 4.4

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.4.0...v4.4.1

bunchee - v4.4.0

Published by huozhi 9 months ago

Hello, a beautiful weekend with few amazing contributions from community! We shipped a load of DX improvments this time for y'all and also few bug fixes!

Highlights in 4.4

Lint your package.json before build, give you better exports

⚠️ Cannot export `require` field with .js or .mjs extension in ESM package, only .cjs extensions are allowed
⚠️   ./dist/index.js
⚠️ Cannot export `import` field with .cjs extension in ESM package, only .js and .mjs extensions are allowed
⚠️   ./dist/foo.cjs

Clean your dist folder before building

If you dont want to auto clean build bundles, just use --no-clean option

bunchee --no-clean # clean is by default

development and production export conditions

src/index.js can be injected with NODE_ENV based on the export conditon when using development or production

{
   "exports": {
      "development":  "./dist/index.development.js",
      "production":  "./dist/index.production.js",
   }
}

Other Improvements

  • will be auto injected with its corresponding process.env.NODE_ENV
  • Auto generate tsconfig.json for you in build if you don't have any
  • Robust CSS minification

Feature

Patches

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.3.4...v4.4.0

bunchee - v4.3.4

Published by huozhi 9 months ago

Patches

Improvements

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.3.3...v4.3.4

bunchee - v4.3.3

Published by huozhi 9 months ago

Patches

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.3.2...v4.3.3

bunchee - v4.3.2

Published by huozhi 9 months ago

Patches

New Contributors

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.3.1...v4.3.2

bunchee - v4.3.1

Published by huozhi 9 months ago

Patches

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.3.0...v4.3.1

bunchee - v4.3.0

Published by huozhi 9 months ago

😮 Are you struggling with configuring exports field in package.json? Don't want to think about CJS/ESM?
Now you can auto configuration for new JS project with CJS/ESM compatible exports with one command 😮

Enter your project with grouping entry files in the src/ folder, each entry file will be turned into an export in package.json.

- src/
  | - index.ts
  | - core.ts

🥳 Then just run prepare command, all done!

bunchee --prepare

Feature

🧠 Auto configure CJS/ESM exports command
💅 Prettier output

Changelog

Full Changelog: https://github.com/huozhi/bunchee/compare/v4.2.11...v4.3.0