bunchee

Zero config bundler for ECMAScript and TypeScript packages

Downloads
72K
Stars
926
Committers
23

Bot releases are visible (Hide)

bunchee - v2.1.7

Published by huozhi almost 2 years ago

Patches

bunchee - v2.1.6

Published by huozhi almost 2 years ago

Patches

bunchee - v2.1.5

Published by huozhi about 2 years ago

Patches

bunchee - v2.1.4

Published by huozhi about 2 years ago

Patches

Misc

bunchee - v2.1.3

Published by huozhi about 2 years ago

Patches

bunchee - v2.1.2

Published by huozhi about 2 years ago

Fixes

  • Fix: dynamic require dts plugin when necessary #129
bunchee - v2.1.1

Published by huozhi about 2 years ago

Features

  • Bundle types #126
  • Adopt upstream SWC updates for stable minifier
  • Better logging for build jobs

Patches

bunchee - v2.0.4

Published by huozhi about 2 years ago

Patches

  • Leverage swc3 plugin tsconfig resolving #121
  • Fix cli format argument #120
bunchee - v2.0.2

Published by huozhi about 2 years ago

Patches

bunchee - v2.0.0

Published by huozhi about 2 years ago

BREAKING Change

  • --target is now to renamed --runtime with same value
  • source map generation is disabled by default, use --sourcemap to enable sourcemap

Features

  • Use swc to compile all assets to speed up compilation and minification
  • Support different ECMAScript versions via --target option, all swc supported ES versions es3|es5|... are supported
  • Auto detect your entries with multi exports in package.json and build all in once

Improvements

  • Better error logging with more clear trace
  • Adding build logging for each bundle both in build and watch mode

Changes

bunchee - v2.0.0-beta.5

Published by huozhi about 2 years ago

Bug Fixes

  • ๐Ÿง Fix watch mode for multiple entries #111

Improvement

  • ๐ŸŽจ Log build time and entries info #112
bunchee - v2.0.0-beta.4

Published by huozhi about 2 years ago

What's New ๐Ÿ˜

This is an exicting release! Few amazing features and improvements are here for you to checkout ๐Ÿ‘€

BREAKING Change

rename --target to --runtime #107

If you were using --target option, now you need to migrate to --runtime, values are same.

New Features ๐Ÿš€

Support different ECMAScript versions #108

Check Now with --target now you can speicify your compilation target with any ES version that swc supports, like es2016, es2020 or leave it as es5 by default.

Top-level files as entry #103

We once introduced bunchee config in previous alpha versions but it's not removed. We introduced a new convention that you can let bunchee to build your package with multiple exports. An exmaple is given below:

You may have a file structure like this

- my-package
  |- lite.ts
  |- index.ts
  |- src/
  |- package.json

With this content in package.json

{
  "scripts": {
     "build": "bunchee"
  },
  "exports": {
    "./lite": "./dist/lite.js"
    ".": {
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs"
   }
  }
}

In that case bunchee will match your top-level files lite.ts with "./lite" exports and index.ts with "." exports as entry source files, and use the "exports" info as output paths. Then you only need to run bunchee and it will take care of everything for you.

Bug Fixes ๐Ÿ”จ

Improvements โœจ

Misc


New Contributors

bunchee - v2.0.0-beta.2

Published by huozhi about 2 years ago

Feature

Since SWC now output typescript version of regenerator-runtime, it's much more smaller than the babel version and there's no extra dependencies need to be installed, bunchee adopts SWC as global compiler for all js/ts files transform. The speed is beyong balzing fast โšก๏ธ!

  • Use swc to compile typescript #94

Breaking Change

  • Disable sourcemap by default #95
bunchee - v2.0.0-alpha.2

Published by huozhi about 2 years ago

Patches

  • Fix: only apply terser for ts #90
  • Mark self and ones from peer deps meta as external #91
bunchee - v2.0.0-alpha.1

Published by huozhi about 2 years ago

This pre-release is mainly for speed improvement and support for cover more complicated use cases such as configuration for multi-exports. Notice that the multi entry feature is still in experimental ๐Ÿงช

Features

  • Replace babel with swc for js/jsx extensions files compilation (#80)
  • Experimental feature: customized config and support specifiying multiple entries, checkout #87 for more details

Fixes

  • Upgrade typescript plugin for related ts compilation fixes (#88)
  • fix(deps): fix unmet peer dependency issues by @tmilewski in (#83)

Misc

New Contributors

  • @tmilewski made their first contribution in (#84) ๐ŸŽ‰
bunchee - 1.9.0

Published by huozhi over 2 years ago

Feature

Support manually specifying externals

bunchee index.js -e react -e react-dom -o dist/index.js 

Changes

Full Changelog: https://github.com/huozhi/bunchee/compare/v1.8.5...v1.9.0

bunchee - v1.8.5

Published by huozhi over 2 years ago

Patches

  • Fix missing shebang #78
  • Do not abort for watch mode when errors #76
bunchee - v1.8.3

Published by huozhi over 2 years ago

Bug fixes

  • surpass rollup warnings: PREFER_NAMED_EXPORTS and MIXED_EXPORTS by @huozhi #69 and #23d7a8
  • stick to named exports by @huozhi in #73
bunchee - v1.8.1

Published by huozhi almost 3 years ago

What's Changed

Full Changelog: https://github.com/huozhi/bunchee/compare/v1.8.0...v1.8.1

bunchee - v1.8.0

Published by huozhi almost 3 years ago

What's New

Support exports field in package.json