Releases: web-infra-dev/rsbuild
Releases · web-infra-dev/rsbuild
v0.7.3
What's Changed
New Features 🎉
- feat: allow to access compilation in modifyHTMLTags hook by @chenjiahan in #2497
- feat: expose assetPrefix for modifyHTMLTags hook by @chenjiahan in #2498
- feat: support override library type config when target is node by @9aoy in #2500
- feat: support generating SRI for initial chunks by @chenjiahan in #2499
- feat: allow tools.rspack to be async function by @chenjiahan in #2515
- feat: allow tools.bundlerChain to be async function by @chenjiahan in #2516
- feat(deps): bump Rspack v0.7.1 by @chenjiahan in #2517
Performance 🚀
- perf(plugin-lightningcss): only validate in setup stage by @chenjiahan in #2512
Bug Fixes 🐞
- fix: apply lightningcss minify to the correct stage by @chenjiahan in #2513
Document 📖
- docs(plugin-sass): add tip for legacy API by @chenjiahan in #2493
- docs: add guide for upgrading Rsbuild by @chenjiahan in #2496
- docs: correct the type of html.tags config by @chenjiahan in #2510
- docs: add security.sri config by @chenjiahan in #2511
Other Changes
- test(e2e): add case for React compiler by @chenjiahan in #2487
- chore(deps): update dependency @modern-js/module-tools to ^2.51.0 by @renovate in #2488
- chore(deps): update dependency prettier to ^3.3.0 by @renovate in #2489
- chore(deps): update dependency postcss-load-config to v6 by @chenjiahan in #2492
- chore(config): remove exports field by @chenjiahan in #2494
- chore: redirect compiled paths by @chenjiahan in #2495
- chore(deps): bump react 19.0.0-rc.0 by @chenjiahan in #2505
- test(e2e): add cases for security.sri by @chenjiahan in #2506
- chore: separate nonce plugin from html plugin by @chenjiahan in #2507
- refactor: split mergeChainedOptions helper by @chenjiahan in #2514
- test(e2e): enable exports presence case by @chenjiahan in #2518
Full Changelog: v0.7.2...v0.7.3
v0.7.2
What's Changed
New Features 🎉
- feat: add cssModules.mode option by @chenjiahan in #2459
- feat: check if dist folder is empty before previewing by @chenjiahan in #2460
- feat: print compiler close errors by @chenjiahan in #2465
- feat: allow to enable namedExport for CSS Modules by @chenjiahan in #2475
- feat(typed-css-modules): support for named export by @chenjiahan in #2476
Bug Fixes 🐞
- fix: avoid printing undefined file path by @chenjiahan in #2463
- fix(typed-css-modules): avoid exporting invalid
cssExports
by @imranbarbhuiya in #2474 - fix(typed-css-modules): change webpack to Rsbuild by @chenjiahan in #2479
- fix(plugin-babel): run babel loader before builtin SWC loader by @chenjiahan in #2485
Document 📖
- docs: move Less FAQ to plugin-less document by @chenjiahan in #2461
- docs(plugin-less): fix lessOptions example by @chenjiahan in #2462
- docs: fix dataUriLimit default value by @chenjiahan in #2466
- docs: recommend using @swc/plugin-emotion by @chenjiahan in #2468
- docs: add custom manifest path example by @chenjiahan in #2473
- docs: reorganize the webpack migration guide by @chenjiahan in #2481
Other Changes
- test: add css resolve-ts-paths test case by @9aoy in #2467
- chore: move base configs to single package by @chenjiahan in #2470
- chore: node build target to ES2021 by @chenjiahan in #2471
- chore(deps): update all patch dependencies by @renovate in #2386
- chore(CI): remove release with comment feature by @9aoy in #2472
- chore(deps): update dependency sass to ^1.77.4 by @renovate in #2483
- chore(deps): update dependency eslint to ^9.4.0 by @renovate in #2484
New Contributors
- @imranbarbhuiya made their first contribution in #2474
Full Changelog: v0.7.1...v0.7.2
v0.7.1
What's Changed
New Features 🎉
- feat: add dev.lazyCompilation config by @chenjiahan in #2454
- types(plugin-sass): export PluginSassOptions type by @9aoy in #2453
Bug Fixes 🐞
- fix: exclude all CSS lazy compilation by @chenjiahan in #2457
Document 📖
- docs: OG image is broken by @fi3ework in #2452
- docs: improve v0.7 announcement by @chenjiahan in #2449
- docs: add lazy compilation to document by @chenjiahan in #2455
Other Changes
- chore(deps): bump Rspress v1.22.0 by @chenjiahan in #2456
Full Changelog: v0.7.0...v0.7.1
v0.7.0
What's Changed
See: Announcing Rsbuild v0.7 for more details
Breaking Changes 🍭
- breaking change: separating Less plugins from core by @chenjiahan in #2406
- breaking change: separating Sass plugins from core by @chenjiahan in #2407
New Features 🎉
- feat: use CssExtractRspackPlugin to extract CSS by @9aoy in #1577
- feat(shared): provide mjs exports by @chenjiahan in #2333
- feat: make more packages support esm exports by @chenjiahan in #2335
- feat: output.dataUriLimit defaults to 4096 by @chenjiahan in #2338
- feat: add new
@rsbuild/plugin-typed-css-modules
package by @9aoy in #2340 - feat: add ESM build for
@rsbuild/core
by @chenjiahan in #2361 - feat: add rsbuild.getPlugins JavaScript API by @chenjiahan in #2369
- feat(plugin-vue): support CSS Modules in SFC by @chenjiahan in #2374
- feat(plugin-vue2): support CSS Modules in SFC by @chenjiahan in #2375
- feat(core): export config subtypes by @chenjiahan in #2380
- feat: add cssModules.exportGlobals option by @chenjiahan in #2392
- feat: support tools.cssExtract config by @chenjiahan in #2393
- feat: print hints for CSS preprocessors plugins by @chenjiahan in #2421
- feat(plugin-vue): support for lang="postcss" by @chenjiahan in #2422
- feat(plugin-umd): allow to configure chunk split strategy by @chenjiahan in #2424
- feat(server): support for HTTP/2 by @chenjiahan in #2428
- feat(plugin-less): add exclude option by @chenjiahan in #2438
- feat(plugin-sass): add exclude option by @chenjiahan in #2439
- feat(create-rsbuild): allow to create in the current folder by @chenjiahan in #2448
- feat: bump Rspack v0.7.0 by @chenjiahan in #2450
Performance 🚀
- perf: reduce fs calls caused by getCompiledPath by @chenjiahan in #2372
- perf(plugin-sass): defaults to sass-embedded and modern API by @chenjiahan in #2408
- perf: lazy load server related dependencies by @chenjiahan in #2432
Bug Fixes 🐞
- fix: only enable React JSX compilation when using React plugin by @chenjiahan in #2337
- fix: some inaccurate target judgments by @chenjiahan in #2341
- fix: bundle dts files for ESM packages by @chenjiahan in #2347
- fix: remove rslog from prebundle config by @chenjiahan in #2349
- fix: increase priority split-by-module so it can differ from defaultVendors by @JSerFeng in #2348
- fix(shared): broken types due to type module by @chenjiahan in #2353
- fix: build target of client bundles by @chenjiahan in #2366
- fix: lazy import webpack-dev-middleware by @chenjiahan in #2367
- fix(plugin-swc): no longer depend on internal helper to parse minify by @chenjiahan in #2371
- fix: missing resourceQuery param of cssLoader.module.auto by @chenjiahan in #2373
- fix: failed to load postcss.config.ts by @chenjiahan in #2385
- fix(plugin-sass): should publish compiled folder by @chenjiahan in #2414
- fix(plugin-lightningcss): ensure works with CSS preprocessors by @chenjiahan in #2426
- fix: preview command print invalid URL by @chenjiahan in #2430
- fix(plugin-eslint): make ESLint as a peer dependency by @chenjiahan in #2437
- fix(plugin-pug): bump pug and fix security alert by @chenjiahan in #2440
- fix: allow to load empty env vars by @chenjiahan in #2441
- fix: browserslist resolve is broken by prebundle by @chenjiahan in #2446
- fix: update css-loader modules typing by @chenjiahan in #2447
Document 📖
- docs: make performance.profile more clear by @chenjiahan in #2322
- docs: localIdentName hashDigest has been supported in rspack mode by @9aoy in #2331
- docs: update Rspack JS API link by @chenjiahan in #2336
- docs: introduce typed-css-modules plugin by @9aoy in #2342
- docs: add guide for React Compiler by @chenjiahan in #2357
- docs: bump Rspress to match Rsbuild v0.7 by @chenjiahan in #2365
- docs: add rsbuild-storybook link by @chenjiahan in #2368
- docs(css-modules): add generate exact type definitions guide by @9aoy in #2388
- docs: add example for exports format by @chenjiahan in #2391
- docs: fix node.org dead link by @SoonIter in #2396
- docs: update document for Sass/Less plugins by @chenjiahan in #2411
- docs: add rsbuild.initConfigs to document by @chenjiahan in #2425
- docs: improve startUrl config guide by @chenjiahan in #2442
- docs: announcing Rsbuild v0.7 by @chenjiahan in #2398
Other Changes
- refactor: merge internal CSS plugins by @chenjiahan in #2326
- refactor: move CSS helpers from shared to core by @chenjiahan in #2329
- chore(deps): update rspress to ^1.21.0 by @renovate in #2330
- chore(build): enable full type check and fix type issue by @chenjiahan in #2332
- chore: set package type to module by @chenjiahan in #2334
- test(e2e): enable CSS Modules import loaders case by @chenjiahan in #2339
- chore(workflow): skip CI when meta.json changed by @chenjiahan in #2343
- Release v0.7.0-beta.0 by @chenjiahan in #2345
- test(e2e): fix regexp for matching rem script name by @chenjiahan in #2346
- chore: reduce exports of the shared package by @chenjiahan in #2350
- Release v0.7.0-beta.1 by @chenjiahan in #2351
- chore: adapted to Rspack v0.7 incompatible changes by @9aoy in #2352
- Release v0.7.0-beta.2 by @chenjiahan in #2354
- chore: fix dist types package.json path by @chenjiahan in #2355
- Release v0.7.0-beta.3 by @chenjiahan in #2356
- chore: move shared helpers to core and plugin-typed-css-modules by @chenjiahan in #2358
- refactor: merge monorepo-utils into plugin-source-build by @chenjiahan in #2359
- chore(deps): bump rspack to 0.7.0-beta.0 by @9aoy in #2362
- refactor: organizing helpers between core and shared by @chenjiahan in #2363
- Release: 0.7.0-beta.4 by @chenjiahan in #2364
- test(helper): simplify createStubRsbuild by @chenjiahan in #2370
- Release: 0.7.0-beta.5 by @chenjiahan in #2376
- chore(deps): update dependency preact to ^10.22.0 by @renovate in #2377
- chore(shared): clean up Rspack and server types by @chenjiahan in #2378
- chore: make some plugins do not depend on shared by @chenjiahan in #2379
- chore(deps): update dependency commander to ^12.1.0 by @renovate in #2...
v0.7.0-beta.9
What's Changed
New Features 🎉
- feat: print hints for CSS preprocessors plugins by @chenjiahan in #2421
- feat(plugin-vue): support for lang="postcss" by @chenjiahan in #2422
- feat(plugin-umd): allow to configure chunk split strategy by @chenjiahan in #2424
- feat(server): support for HTTP/2 by @chenjiahan in #2428
Bug Fixes 🐞
- fix(plugin-lightningcss): ensure works with CSS preprocessors by @chenjiahan in #2426
Document 📖
- docs: add rsbuild.initConfigs to document by @chenjiahan in #2425
Other Changes
- chore(deps): bump Rspack 0.7.0-beta.2 by @chenjiahan in #2419
- chore(workflow): enable MDX type hints by @chenjiahan in #2420
- chore: fix can't find compiled module when run dev in core by @9aoy in #2423
- test(e2e): add case for basic ssl plugin by @chenjiahan in #2427
Full Changelog: v0.7.0-beta.8...v0.7.0-beta.9
v0.7.0-beta.8
What's Changed
Bug Fixes 🐞
- fix(plugin-sass): should publish compiled folder by @chenjiahan in #2414
Document 📖
- docs: update document for Sass/Less plugins by @chenjiahan in #2411
Other Changes
- test: update sass/less config usages by @chenjiahan in #2413
- test(ut): reuse the matchRules helper by @chenjiahan in #2416
- refactor: copy loaders from the builtin CSS rule by @chenjiahan in #2417
Full Changelog: 0.7.0-beta.7...v0.7.0-beta.8
0.7.0-beta.7
What's Changed
Breaking Changes 🍭
- breaking change: separating Less plugins from core by @chenjiahan in #2406
- breaking change: separating Sass plugins from core by @chenjiahan in #2407
Performance 🚀
- perf(plugin-sass): defaults to sass-embedded and modern API by @chenjiahan in #2408
Other Changes
- test(e2e): add case for tailwindcss HMR by @chenjiahan in #2403
- chore: use normalized config to create server by @chenjiahan in #2404
Full Changelog: v0.7.0-beta.6...0.7.0-beta.7
v0.7.0-beta.6
What's Changed
New Features 🎉
- feat(core): export config subtypes by @chenjiahan in #2380
- feat: add cssModules.exportGlobals option by @chenjiahan in #2392
- feat: support tools.cssExtract config by @chenjiahan in #2393
Bug Fixes 🐞
- fix: failed to load postcss.config.ts by @chenjiahan in #2385
Document 📖
- docs(css-modules): add generate exact type definitions guide by @9aoy in #2388
- docs: add example for exports format by @chenjiahan in #2391
- docs: fix node.org dead link by @SoonIter in #2396
Other Changes
- chore(deps): update dependency preact to ^10.22.0 by @renovate in #2377
- chore(shared): clean up Rspack and server types by @chenjiahan in #2378
- chore: make some plugins do not depend on shared by @chenjiahan in #2379
- chore(deps): update dependency commander to ^12.1.0 by @renovate in #2381
- chore(deps): update dependency lightningcss to ^1.25.0 by @renovate in #2382
- chore(deps): bump Rspack 0.7.0-beta.1 by @chenjiahan in #2399
- chore: remove unused ignoreWarnings config by @chenjiahan in #2400
Full Changelog: v0.7.0-beta.5...v0.7.0-beta.6
v0.7.0-beta.5
What's Changed
New Features 🎉
- feat: add
rsbuild.getPlugins
JavaScript API by @chenjiahan in #2369 - feat(plugin-vue): support CSS Modules in SFC by @chenjiahan in #2374
- feat(plugin-vue2): support CSS Modules in SFC by @chenjiahan in #2375
Performance 🚀
- perf: reduce fs calls caused by getCompiledPath by @chenjiahan in #2372
Bug Fixes 🐞
- fix: build target of client bundles by @chenjiahan in #2366
- fix: lazy import webpack-dev-middleware by @chenjiahan in #2367
- fix(plugin-swc): no longer depend on internal helper to parse minify by @chenjiahan in #2371
- fix: missing resourceQuery param of cssLoader.module.auto by @chenjiahan in #2373
Document 📖
- docs: bump Rspress to match Rsbuild v0.7 by @chenjiahan in #2365
- docs: add rsbuild-storybook link by @chenjiahan in #2368
Other Changes
- test(helper): simplify createStubRsbuild by @chenjiahan in #2370
Full Changelog: v0.7.0-beta.4...v0.7.0-beta.5
v0.7.0-beta.4
What's Changed
New Features 🎉
- feat: add ESM build for
@rsbuild/core
by @chenjiahan in #2361
Document 📖
- docs: add guide for React Compiler by @chenjiahan in #2357
Other Changes
- chore: move shared helpers to core and plugin-typed-css-modules by @chenjiahan in #2358
- refactor: merge monorepo-utils into plugin-source-build by @chenjiahan in #2359
- chore(deps): bump rspack to 0.7.0-beta.0 by @9aoy in #2362
- refactor: organizing helpers between core and shared by @chenjiahan in #2363
Full Changelog: 0.7.0-beta.3...v0.7.0-beta.4