What's Changed
Performance Improvements ⚡
- perf(deps): update
swc_core
to v13 by @chenjiahan in #9133 - perf(storage): release pack contents after loading by @LingyuCoder in #9187
- perf: speedup compile by @hardfist in #9199
Exciting New Features 🎉
- feat(create-rspack): create React 19 project by default by @chenjiahan in #9130
- feat: add rust benchmark case for code splitting by @JSerFeng in #9127
- feat: get block chunk group by @SyMind in #9165
- feat: support missing module graph js api by @SyMind in #9172
- feat: support missing module js api by @SyMind in #9177
- feat: add rsdoctor native plugin by @LingyuCoder in #8930
- feat: layer option support function by @SyMind in #9189
- feat: chunkGroup.childrenIterable & dependency.ids by @SyMind in #9195
- feat: add getResolver method for NormalModuleFactory by @inottn in #9202
- feat(lazy-compilation): support module id for LazyCompilationProxyModule by @JSerFeng in #9223
- feat(plugin-css): should handle css layer supports media by @JSerFeng in #9221
- feat: add native hook of real content hash plugin by @LingyuCoder in #9234
Bug Fixes 🐞
- fix: dll manifest zod validation by @ahabhgk in #9112
- fix: amd require array by @ahabhgk in #9113
- fix: require local module and support new require by @ahabhgk in #9114
- fix: amd alias define renaming by @ahabhgk in #9117
- fix: correct lazy compilation backend options schema by @chenjiahan in #9138
- fix: should not tree shaking used ident accidentally in composes by @JSerFeng in #9161
- fix(types): prebundle
@swc/types
to fix missing dts files by @inottn in #9173 - fix: do not expose
build()
for level-2 options builder by @h-a-n-a in #9188 - fix: align default options with JS by @h-a-n-a in #9116
- fix(core): initialize resolverFactory early by @hardfist in #9193
- fix(core): don't swallowing exceptions in stats.toJson by @hardfist in #9208
- fix: incremental make rebuild removed entry module by @jerrykingxyz in #9209
- fix: ignore generator options for
asset/source
module type by @haocheng6 in #9216 - fix: lazy compilation request handler should filter lazy-compilation request by @JSerFeng in #9166
- fix: alias sequence order & merge result by @SyMind in #9206
- fix(incremental): build chunk graph not build new added entry by @ahabhgk in #9225
- fix: namedChunks / emitAsset js api by @SyMind in #9185
- fix: rspack sources perf bug by @SyMind in #9229
- fix(deps): ⬆️ rspack_resolver 0.5.1 by @stormslowly in #9233
Document Updates 📖
- docs: add Khan Academy to who is using by @chenjiahan in #9120
- docs: add notes for injecting core-js polyfill by @chenjiahan in #9122
- docs: fix invalid
cacheGroups
example by @chenjiahan in #9129 - docs: add examples for all module parser and generator options by @chenjiahan in #9131
- docs: rewrite plugins usage guide by @chenjiahan in #9132
- docs: improve HtmlRspackPlugin docs and types by @grushetsky in #9144
- docs: add
compiler.hooks.finishMake
by @colinaaa in #9146 - docs: set Open Graph images based on page routes by @chenjiahan in #9148
- docs: add profile guide using samply by @hardfist in #9157
- docs: update rspress 1.41.0 and enable codeBlocks search by @chenjiahan in #9158
- docs(typo): Fix rspack.config typo in nestjs by @Codfisher in #9179
- docs: support for tabbed code blocks for ESM/CJS toggle by @chenjiahan in #9186
- docs: fix
output.workerChunkLoading
link by @9aoy in #9194 - docs: use ESM for simple configuration examples by @chenjiahan in #9190
- docs: update profiling guide by @hardfist in #9201
- docs: rewrite configure Rspack section by @chenjiahan in #9211
- docs: improve FlagDependencyExportsPlugin for large JSON by depth by @hai-x in #9215
- docs: correct splitChunks chunk.name by @JSerFeng in #9218
- docs: link to Tailwind CSS v4 documentation by @chenjiahan in #9220
- docs: migrate all configuration examples to ESM or dual format by @chenjiahan in #9238
Other Changes
- chore: release packages 1.2.2 by @ahabhgk in #9106
- chore(CI): split PR labeler workflow by @chenjiahan in #9102
- chore: update Rslib description in README.md by @Timeless0911 in #9110
- chore(deps): update rspress to v1.40.2 by @renovate in #9118
- chore(deps): update
swc_core
to v10.7.0 by @chenjiahan in #9125 - chore(workflow): remove duplicated issue label by @chenjiahan in #9140
- chore(ci): remove invalid field by @inottn in #9147
- ci: fix corepack key id mismatch by @chenjiahan in #9153
- chore: bump inventory 0.1 -> 0.3 by @CPunisher in #9159
- fix(type): export resource data with data type and add docs by @LonelySnowman in #9107
- test: add missing
findBundle
option to ensure test cases are executed by @haocheng6 in #9057 - refactor: path relative in source map plugin by @SyMind in #8903
- feat: add
EnableChunkLoadingPlugin.{setEnabled,checkEnabled}
by @colinaaa in #9092 - feat: add
chunk.getEntryOptions()
by @colinaaa in #9093 - chore(renovate): split npm updates into fine-grained PRs by @chenjiahan in #9164
- refactor: remove
NormalModule
last_successful_build_meta field by @jerrykingxyz in #9163 - chore(deps): update dependency @rslib/core to v0.4.0 by @renovate in #9167
- chore(deps): update dependency @rstack-dev/doc-ui to v1.6.0 by @renovate in #9168
- test(webpack-test): add back two test case by @stormslowly in #9152
- chore(deps-dev): bump vitest from 2.1.8 to 2.1.9 by @dependabot in #9174
- refactor: module.build directly updates build_info and build_meta by @jerrykingxyz in #9178
- chore(deps): update dependency create-rstack to v1.2.0 by @renovate in #9181
- chore(deps): update dependency cspell to ^8.17.3 by @renovate in #9182
- refactor(rust): use
cow_to_ascii_uppercase
andcow_to_ascii_lowercase
by @shulaoda in #9126 - chore(deps): update dependency zod to ^3.24.1 by @renovate in #9169
- chore(deps): update dependency acorn to ^8.14.0 by @renovate in #9196
- chore(deps): update dependency enhanced-resolve to v5.18.1 by @renovate in #9197
- chore(deps): update dependency memfs to v4.17.0 by @renovate in #9198
- chore(deps): update crate-ci/typos action to v1.29.5 by @renovate in #9156
- chore(workflow): let renovate pin GitHub Action digests by @chenjiahan in #9200
- chore(deps): update babel by @renovate in #9180
- chore(deps): update dependency @arco-design/web-react to ^2.65.0 by @renovate in #9212
- chore(deps): update typescript and @microsoft/api-extractor by @renovate in #9040
- chore(deps): update dependency antd to v5.23.4 by @renovate in #9214
- chore(deps): pin dependencies by @renovate in #9203
- chore(deps): update dependency acorn to ^8.14.0 by @renovate in #9213
- chore: allow prettier to format more test files by @chenjiahan in #9207
- chore: remove useless tests folder by @JSerFeng in #9219
- refactor: get plugin hooks by compilation id by @LingyuCoder in #9222
- chore(deps): update dependency fs-extra to ^11.3.0 by @renovate in #9226
- chore(deps): update dependency less to v4.2.2 by @renovate in #9227
- chore(deps): update dependency terser to v5.38.1 by @renovate in #9228
- chore: bump rspack_dojang to 0.1.11 by @LingyuCoder in #9231
- refactor: build info save module asset by @jerrykingxyz in #9230
- refactor: add compilation id to html hook data by @LingyuCoder in #9236
New Contributors
- @grushetsky made their first contribution in #9144
- @LonelySnowman made their first contribution in #9107
- @Codfisher made their first contribution in #9179
Full Changelog: v1.2.2...v1.2.3