v1.0.0-alpha.3
chenjiahan
released this
11 Jul 10:52
·
1097 commits
to main
since this release
Highlights π‘
Rust Fat LTO
Rspack v1.0.0-alpha.3 enabled Rust 'fat' LTO to improve performance (#7088):
- Build performance (according to benchmark): 1% ~ 3% faster
- Smaller binary size (rspack.darwin-arm64.node): 55.4 MB -> 51.7 MB
Breaking Changes π
- feat!: detect conflicting values in
DefinePlugin
by @h-a-n-a in #7045 - feat!: use native resolver in loader by @bvanjoi in #4945
Other Changes
Performance Improvements β‘
- perf: cache
compilation.entrypoints
by @chenjiahan in #7059 - perf: remove unneeded string clone by @JSerFeng in #7104
- perf: reduce
get_scheme
allocation by @h-a-n-a in #7109 - perf: reduce alloc for bailout reason by @h-a-n-a in #7118
Exciting New Features π
- feat(rspack_core): nmf resolve in schema hook by @ScriptedAlchemy in #7039
- feat: tree shakable output for module library by @fi3ework in #6877
- feat: downgrade container runtime to es2015 by @ahabhgk in #7085
- feat: to function can return Promise by @SyMind in #7068
- feat: support more features of
DefinePlugin
by @h-a-n-a in #7108 - feat: align part of StatsError by @LingyuCoder in #7091
- feat(create-rspack): update template package name by @liangchaofei in #7092
- feat: reduce unnecessary exports runtime by @fi3ework in #7102
- feat: support type field for JsModule by @JSerFeng in #7093
Bug Fixes π
- fix: Add missing code for compatibility plugin by @CPunisher in #7079
- fix: panic when get max target in find target by @LingyuCoder in #7082
- fix: support css nonce by @LingyuCoder in #7101
- fix(mf): runtime should respect output environment by @ahabhgk in #7113
- fix: should not shake used json fields by @JSerFeng in #7119
- fix: remove unsupported
builtins.provide
by @h-a-n-a in #7086
Document Updates π
- docs: add baidu verify file for SEO optimization by @chenjiahan in #7073
- docs: fix netlify redirect cause baidu verify failed by @chenjiahan in #7074
- docs: update license ui by @9aoy in #7076
- docs: update teams page, add Rsfamily members by @chenjiahan in #7083
- docs: enable sitemap for SEO by @chenjiahan in #7105
- docs: polish migration wordings by @h-a-n-a in #7117
Other Changes
- refactor: port inner graph by @JSerFeng in #7043
- chore(infra): use import type by @SoonIter in #7099
- chore(infra): update biome useArrowFunction by @SoonIter in #7103
- chore(deps): update dependency sass-loader to v14 by @renovate in #7095
- refactor: report
Module not found
instead ofResolve Error
by @LingyuCoder in #7106 - test: enable passed webpack config cases by @LingyuCoder in #7120
New Contributors
- @liangchaofei made their first contribution in #7092
Full Changelog: v1.0.0-alpha.2...v1.0.0-alpha.3