See Announcing Rspack 1.2 for more details.
What's Changed
New Features 🎉
- feat(deps): bump Rspack v1.2.0 by @chenjiahan in #4406
- feat(deps): bump Rspack 1.2.0-beta.0 by @chenjiahan in #4337
- feat(deps): bump Rspack 1.2.0-alpha.0 by @chenjiahan in #4296
- feat: hint more unknown file types by @chenjiahan in #4274
- feat: allow to custom manifest JSON by @chenjiahan in #4289
- feat: allow
publicDir.copyOnBuild
to be 'auto' by @chenjiahan in #4299 - feat: allow to filter files included in the manifest by @chenjiahan in #4307
- feat: treat
.cur
as image assets by @chenjiahan in #4327 - feat: export some useful types by @chenjiahan in #4329
- feat: add
issuer
andwith
options toapi.transform
by @9aoy in #4354 - feat: export
RsbuildDevServer
type by @9aoy in #4368 - feat: add
cleanDistPath.keep
config by @chenjiahan in #4375 - feat: optimize
cleanDistPath.keep
RegExp by @chenjiahan in #4390 - feat(plugin-sass): add
useOriginalUrlResolver
option to disableresolve-url-loader
by @junhea in #4389
Performance 🚀
- perf: move overlay template to server side by @chenjiahan in #4276
- perf: replace
commander
withcac
by @chenjiahan in #4284 - perf(asets-retry): use SWC to transform and minify code by @chenjiahan in #4312
- perf(assets-retry): normalize options on the server side by @chenjiahan in #4320
- perf(assets-retry): reduce nullish coalescing operator by @chenjiahan in #4325
- perf(assets-retry): use shorter namespace prefix by @chenjiahan in #4326
Bug Fixes 🐞
- fix: should copy public dir to environment's dist dir by @9aoy in #4268
- fix: ansi HTML edge cases by @chenjiahan in #4279
- fix: overlay renders invalid file path by @chenjiahan in #4280
- fix: allow
environment
option ofcreateRsbuild
to be an empty array by @chenjiahan in #4283 - fix: do not copy public dir for node target by default by @9aoy in #4281
- fix: correct extension alias order to align with Node.js by @chenjiahan in #4308
- fix(asset-retry): avoid using function rest parameters by @chenjiahan in #4313
- fix: no need to use extensionAlias when using jsconfig.json by @chenjiahan in #4321
- fix(plugin/assets-retry): addQuery and switchDomain should work in async css chunk by @SoonIter in #4315
- fix: deprecation warning when using proxy with Node 22 by @chenjiahan in #4347
- fix: let lightningcss minimizer inherit loader options by @chenjiahan in #4392
- fix(core):
output.assetsInclude
adds a rule but not exposes public api by @SoonIter in #4385 - fix!: disable
server.cors
by default for security reasons by @chenjiahan in #4399
Document 📖
- docs: update UnoCSS guide to use
@unocss/webpack
by @chenjiahan in #4287 - docs: add
output.manifest.generate
config by @chenjiahan in #4290 - docs: correct tips in filename.mdx by @chenjiahan in #4316
- docs: add
@ng-rsbuild/plugin-angular
to plugins list by @chenjiahan in #4322 - docs: update banner image by @chenjiahan in #4323
- docs: update community page by @chenjiahan in #4324
- docs: only generate stats.json by @chenjiahan in #4340
- docs: optimize Tailwind CSS build performance by @chenjiahan in #4343
- docs: unify title capitalization style by @chenjiahan in #4350
- docs: tip decorators version differences by @9aoy in #4351
- docs: correct some cases by @chenjiahan in #4355
- docs: babel migration guide by @chenjiahan in #4358
- docs: clarity
include
andexclude
usages by @chenjiahan in #4360 - docs: update PostCSS guide by @chenjiahan in #4364
- docs: call api.getNormalizedConfig in correct hook by @fi3ework in #4369
- docs: add asynchronous entry configuration example by @chenjiahan in #4370
- docs: clarify
swcReactOptions.refresh
option by @chenjiahan in #4372 - docs: add options for cleanDistPath by @chenjiahan in #4381
- docs: Svelte v5 HMR tip by @chenjiahan in #4384
- docs: correct typo in multi-env title by @RobHannay in #4386
- docs(plugin-sass): improve
rewriteUrls
option by @chenjiahan in #4401
Other Changes
- chore: prefer to use
static-changed
socket type by @chenjiahan in #4273 - refactor: rewrite ansiHTML and add test cases by @chenjiahan in #4277
- chore(deps): update dependency svelte to ^5.16.0 by @renovate in #4286
- chore(deps): update all patch dependencies by @renovate in #4292
- chore: prepare for v1.2.0 pre-release by @chenjiahan in #4297
- chore(deps): update dependency dotenv-expand to v12 by @renovate in #4007
- chore(deps): update playwright monorepo to v1.49.1 - autoclosed by @renovate in #3342
- ci: fix notify script not found by @9aoy in #4298
- chore(CI): fix pnpm not found in eco CI by @chenjiahan in #4300
- chore(CI): fix ecosystem CI failed to get commit sha by @chenjiahan in #4301
- release: 1.2.0-alpha.0 by @chenjiahan in #4305
- chore: resolve OutputFileSystem type TODO by @chenjiahan in #4304
- test(e2e): add more cases for module resolution by @chenjiahan in #4309
- test(e2e): split slow test file by @chenjiahan in #4310
- test(e2e): polish source related cases by @chenjiahan in #4311
- chore(assets-retry): compile runtime code via Rsbuild plugin by @chenjiahan in #4318
- chore: remove unused internal.ts by @chenjiahan in #4328
- chore(deps): update all patch dependencies by @renovate in #4330
- test: remove unused ts-expect-error by @chenjiahan in #4334
- chore(workflow): merge release PR first by @chenjiahan in #4335
- chore(deps): update dependency @rslib/core to v0.3.0 by @renovate in #4333
- chore: avoid using
constructor.name
by @chenjiahan in #4336 - release: 1.2.0-beta.0 by @chenjiahan in #4339
- chore: use pnpm patch instead of custom scripts by @chenjiahan in #4348
- chore(deps): update dependency svelte to ^5.17.3 by @renovate in #4353
- chore(deps): update dependency core-js to ~3.40.0 by @renovate in #4352
- chore: bump pnpm to v10 by @chenjiahan in #4356
- chore(CI): lint documentation heading case by @chenjiahan in #4357
- chore(deps): update dependency create-rstack to v1.1.0 by @renovate in #4359
- chore(deps): update all patch dependencies by @renovate in #4361
- chore(deps): update dependency @types/react to ^19.0.6 by @renovate in #4362
- chore(build): merge similar loader config by @chenjiahan in #4371
- chore(CI): declare permissions for eco CI comments by @chenjiahan in #4376
- chore(deps): update dependency fs-extra to ^11.3.0 by @renovate in #4377
- chore(deps): update dependency svelte to ^5.18.0 by @renovate in #4379
- chore(deps): update rspress to ^1.40.0 by @renovate in #4380
- chore(deps): update dependency postcss to ^8.5.1 by @renovate in #4378
- release: 1.2.0-beta.1 by @chenjiahan in #4383
- chore(deps): update dependency vitest to v3 by @renovate in #4387
- chore: use pnpx to replace npx by @chenjiahan in #4391
- chore(deps): update dependency svelte to ^5.19.0 by @renovate in #4394
- chore(deps): update all patch dependencies by @renovate in #4396
- chore(plugin-sass): rename unreleased option by @chenjiahan in #4398
- release: @rsbuild/plugin-sass v1.2.0 by @chenjiahan in #4403
- release: 1.2.0 by @chenjiahan in #4407
New Contributors
- @RobHannay made their first contribution in #4386
- @junhea made their first contribution in #4389
Full Changelog: v1.1.13...v1.2.0