Releases: huozhi/bunchee
v5.0.0-beta.1
Feature
- Optimize the exports parser by @huozhi in #465
- Leverage better perf from rollup by @devjiwonchoi in #459
- New
no-dts
option by @hyoban in #458
Changes
- refactor: modify
.prettierignore
to not ignore current test directories by @devjiwonchoi in #456 - Distribute integration test to single test files by @devjiwonchoi in #455
- refactor: modify migrated integration test format to be a guide for the upcoming works by @devjiwonchoi in #463
- Add pkg json import test by @huozhi in #470
- Fix prepare handling by @huozhi in #471
- Fix output format by @huozhi in #472
Breaking change
- Deprecate wildcard exports. See #469
Full Changelog: v4.4.8...v5.0.0-beta.1
v4.4.8
v4.4.7
v4.4.6
v4.4.5
v4.4.4
v4.4.3
Patches & Improvements
- Update dependencies and dev deps by @huozhi in #430
- Replace EdgeRuntime for edge build by @huozhi in #432
- feat: print end status in watch mode by @nnecec in #408
- enhance: dont delete dir if it is cwd by @huozhi in #433
- Fix: build in monorepo with composite but incremental disabled by @huozhi in #434
Full Changelog: v4.4.2...v4.4.3
v4.4.2
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.
- Generate relative path for types by @huozhi in #426
- Fix dev and prod convention missing output by @huozhi in #428
Full Changelog: v4.4.1...v4.4.2
v4.4.1
Patches
Improve the stablility of the features we have in 4.4
- Fix plugin orders for basic jsx by @huozhi in #412
- test: add ts composite test case by @himself65 in #414
- Fix ts-composite project build failure by @huozhi in #419
- Fix only prepare existing exports by @huozhi in #416
- Do not clean when entry file is from cli by @huozhi in #418
- fix: Logging is off format by @nnecec in #405
- Fix: bad lint rule for main field by @huozhi in #421
- Fix esm package with cjs entry by @huozhi in #422
New Contributors
- @himself65 made their first contribution in #414
Full Changelog: v4.4.0...v4.4.1
v4.4.0
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
- feat: auto clean dist folder before build by @nnecec in #369
- feat: auto inject env for development and production condition by @huozhi in #396
- Auto generate tsconfig.json for ts project by @huozhi in #399
- Lint package configuration by @huozhi in #401
- Use clean-css for css minification by @huozhi in #403
Patches
- Fix ending log and mixed exports condition by @huozhi in #397
- fix: ignore test file in prepare by @hyoban in #400
- docs: complete clean api by @nnecec in #402
New Contributors
Full Changelog: v4.3.4...v4.4.0