Zero config bundler for ECMAScript and TypeScript packages
Bot releases are visible (Hide)
Published by huozhi almost 2 years ago
Published by huozhi almost 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
Published by huozhi about 2 years ago
--target
is now to renamed --runtime
with same value--sourcemap
to enable sourcemap--target
option, all swc supported ES versions es3|es5|...
are supportedPublished by huozhi about 2 years ago
Published by huozhi about 2 years ago
This is an exicting release! Few amazing features and improvements are here for you to checkout ๐
--target
to --runtime
#107If you were using --target
option, now you need to migrate to --runtime
, values are same.
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.
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.
Published by huozhi about 2 years ago
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 โก๏ธ!
Published by huozhi about 2 years ago
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 ๐งช
Published by huozhi over 2 years ago
bunchee index.js -e react -e react-dom -o dist/index.js
Full Changelog: https://github.com/huozhi/bunchee/compare/v1.8.5...v1.9.0
Published by huozhi over 2 years ago
Published by huozhi over 2 years ago
#23d7a8
Published by huozhi almost 3 years ago
Full Changelog: https://github.com/huozhi/bunchee/compare/v1.8.0...v1.8.1
Published by huozhi almost 3 years ago
Support exports
field in package.json