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 #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
- release: 0.7.0-beta.6 by @chenjiahan in #2401
- test(e2e): add case for tailwindcss HMR by @chenjiahan in #2403
- chore: use normalized config to create server by @chenjiahan in #2404
- release: 0.7.0-beta.7 by @chenjiahan in #2412
- 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
- release: 0.7.0-beta.8 by @chenjiahan in #2418
- 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
- release: 0.7.0-beta.9 by @chenjiahan in #2429
- refactor: unify the applyDefaultPlugins method by @chenjiahan in #2431
- chore(deps): update dependency eslint-webpack-plugin to ^4.2.0 by @renovate in #2434
- chore(deps): update dependency eslint to v9 by @renovate in #2317
- chore(deps): update dependency nx to ^19.1.0 by @renovate in #2435
- chore(deps): update dependency @modern-js/module-tools to ^2.50.0 by @renovate in #2433
- chore(deps): update dependency tsx to ^4.11.0 by @renovate in #2436
Full Changelog: v0.6.15...v0.7.0