Highlights
- Support
compiler.hooks.shouldEmit
hook: Return a boolean telling whether to emit. - Support
compilation.hooks.childCompiler
hook: Executed after created a childCompiler. - Support function type
splitChunks.cacheGroups.{cacheGroup}.test
What's Changed
Performance Improvements ⚡
- perf: reduce aggregateTimeout to speed up HMR by @chenjiahan in #4724
- perf: compilation.hooks.optimizeChunkModules auto disable by @jerrykingxyz in #4756
Exciting New Features 🎉
- feat: support function type for
splitChunks.{cacheGroup}.{test, name}
by @bvanjoi in #4722 - feat: support Chunk.groupsIterable and ChunkGroup.getParents by @bvanjoi in #4641
- feat(plugin-driver): add execute module by @JSerFeng in #4737
- feat: support
Compiler.shouldEmit
by @bvanjoi in #4742 - feat: Module Federation, part 1, ContainerPlugin by @ahabhgk in #4642
- feat: support
compilation.hooks.childCompiler
by @bvanjoi in #4773 - feat: Module Federation, part 2, ContainerReferencePlugin by @ahabhgk in #4735
- feat: bump swc to support
format.inline_script
by @bvanjoi in #4786 - feat: Module Federation, part 3, ProvideSharedPlugin by @ahabhgk in #4778
- feat: Module Federation, part 4, ConsumeSharedPlugin by @ahabhgk in #4783
- feat: support String.raw for context module by @faga295 in #4764
Bug Fixes 🐞
- fix: 🐛assignDeterministicIds alignment by @IWANABETHATGUY in #4693
- fix: 🐛 should invoke
visit_prop
anyway in inner_graph by @IWANABETHATGUY in #4683 - fix(harmony-deps-scanner): should only be
dep.call=true
in call_expr or tagged template's tag by @JSerFeng in #4701 - fix: sort by chunk name before merge duplicate chunk by @bvanjoi in #4725
- fix: compare chunks by modules by @ahabhgk in #4732
- fix(harmony-import-specifier-dep-scanner): add new expr into consideration by @JSerFeng in #4729
- fix: remove @types/webpack-dev-server by @jerrykingxyz in #4744
- fix: use fixed version for rspack in template by @zoolsher in #4746
- fix: typos by @yiliang114 in #4761
- fix: zod-validation-error type error by @xiaoxiangmoe in #4763
- fix: only register
SplitChunkPlugin
once by @bvanjoi in #4766 - fix: flag side effects plugin update dep by @IWANABETHATGUY in #4747
- fix uniqueName Acquisition method by @ityuany in #4670
- fix: regex flags by @nomyfan in #4781
- fix: keep the query passed to loader by @bvanjoi in #4782
- fix: dir path ends with * by @ahabhgk in #4790
- fix: mf test on windows by @ahabhgk in #4793
- fix: use correct DefinePlugin in plugin-react-refresh by @ahabhgk in #4794
- fix: throw error when there had conflict between
chunkName
andentryPointChunk
by @bvanjoi in #4795 - fix: windows test by @ahabhgk in #4796
Other Changes
- chore: remove angular example by @LingyuCoder in #4710
- refactor: block-based code-splitting by @ahabhgk in #4680
- chore: skip show sccache stats by @jerrykingxyz in #4706
- chore: remove angular pnpm lock by @LingyuCoder in #4711
- chore(webpack-test): remove the flaky test which requires on timings by @Boshen in #4715
- chore: fix typos by @Priestch in #4700
- chore(chunk_graph): improve chunk_graph perf by @JSerFeng in #4716
- ci: improve webpack-test stability by @Boshen in #4726
- chore: use eprintln to report error for runtime_requirements by @JSerFeng in #4717
- chore: self hosted macos skip remove sdk by @jerrykingxyz in #4733
- chore: compat get default export by @LingyuCoder in #4731
- chore: commonjs exports dependency by @LingyuCoder in #4720
- refactor: move impl_runtime_module macro to core by @ahabhgk in #4738
- release: 0.4.0 by @h-a-n-a in #4041
- chore: ci set pnpm store-dir in project by @jerrykingxyz in #4743
- chore: fix debugger launcher on window by @h-a-n-a in #4750
- chore: upgrade template to 0.4.0 by @hardfist in #4752
- chore: rspack test tools diff by @LingyuCoder in #4668
- chore: diff trigger by @LingyuCoder in #4755
- chore: diff trigger test by @LingyuCoder in #4760
- ci: remove diff test from release workflow by @LingyuCoder in #4768
- chore(webpack-test): make tests more future proof by @Boshen in #4758
- chore: canary release add windows and enable windows ci on main branch by @jerrykingxyz in #4772
- chore: bump nodejs_resolver by @bvanjoi in #4791
New Contributors
- @Priestch made their first contribution in #4700
- @yiliang114 made their first contribution in #4761
- @ityuany made their first contribution in #4670
- @nomyfan made their first contribution in #4781
Full Changelog: v0.4.0...v0.4.1