Releases: web-infra-dev/rsbuild
Releases · web-infra-dev/rsbuild
v1.0.1
See Announcing Rsbuild 1.0 for more details 🎉
What's Changed
Breaking Changes 🍭
- fix!: remove lightningcss plugin by @chenjiahan in #3047
- fix!(cli): rename env option of inspect command to mode by @chenjiahan in #3140
- feat!: change default charset to utf8 by @chenjiahan in #3250
New Features 🎉
- feat: expose
reduceConfigs
helper by @chenjiahan in #2631 - feat: normalize environment config by @9aoy in #2633
- feat!: replace output.targets with output.target by @9aoy in #2636
- feat!: remove deprecated
dev.startUrl
by @chenjiahan in #2642 - feat: allow to use port placeholder in
client.port
by @chenjiahan in #2641 - feat: support read environments source.entry config by @9aoy in #2643
- feat!: add browserslist to context.environments by @chenjiahan in #2646
- feat!: output.emitAssets changed to boolean type by @chenjiahan in #2649
- feat!: remove
target
param forsource.alias
by @chenjiahan in #2650 - feat: support apply environment html-related config by @9aoy in #2647
- feat: support apply more environment configs by @9aoy in #2652
- feat: support apply more environment configs by @9aoy in #2656
- feat: use environment name as progress id by @chenjiahan in #2670
- feat: handle more cases in ensureAssetPrefix helper by @chenjiahan in #2671
- feat(deps): bump core-js v3.37 and @swc/helpers by @chenjiahan in #2673
- feat!: decorators version defaults to
2022-03
by @chenjiahan in #2677 - feat(styled-components): use SWC Wasm plugin by @chenjiahan in #2679
- feat: support apply environment bundleAnalyze config by @9aoy in #2682
- feat(type-check): allow to check multiple tsconfig files by @chenjiahan in #2684
- feat: print file size grouped by environment by @9aoy in #2683
- feat: support apply environment nonce config by @9aoy in #2685
- feat(source-build): support for flat conditional exports by @chenjiahan in #2688
- types: allow to configure dev in environments by @chenjiahan in #2695
- feat: support for merging environments config by @chenjiahan in #2700
- feat: add modifyEnvironmentConfig hook by @9aoy in #2707
- feat: support apply environment moduleFederation config by @9aoy in #2692
- feat(create-rsbuild): enable allowImportingTsExtensions by @chenjiahan in #2710
- feat: add basic server environment api by @9aoy in #2714
- feat!: enable LightningCSS minimizer as default CSS minimizer by @chenjiahan in #2716
- feat(deps)!: bump Rspack 1.0 alpha by @chenjiahan in #2722
- feat: allow to configure progress bar by environment by @chenjiahan in #2730
- feat(server): support load SSR module by @9aoy in #2528
- feat: support output environment config when inspect config by @9aoy in #2738
- feat: prettier print file size log by @9aoy in #2761
- feat: add environments param into rsbuild api by @9aoy in #2768
- feat!(plugin-vue2): update Vue 2 compiler options to condense whitespace by @a145789 in #2785
- feat: improve the default splitting cache groups by @chenjiahan in #2792
- feat(deps): bump Rspack 1.0.0-alpha.1 by @chenjiahan in #2803
- feat(deps): bump Rspack 1.0.0-alpha.2 by @chenjiahan in #2836
- feat: allow to custom CSS minify options by @chenjiahan in #2840
- feat: set uniqueName for module federation HMR by @chenjiahan in #2853
- types: export HtmlRspackPlugin type by @chenjiahan in #2861
- types: allow passing user config to mergeEnvironmentConfig by @9aoy in #2863
- feat(create-rsbuild): support for project name with npm scope by @chenjiahan in #2874
- types: fix plugins type mismatch by @chenjiahan in #2875
- feat(deps): bump Rspack 1.0.0-alpha.3 by @chenjiahan in #2883
- feat(CLI): add new --env-dir option by @chenjiahan in #2891
- feat: allow to disable gzip compression size by @chenjiahan in #2892
- feat(create-rsbuild): allow to create via CLI options by @chenjiahan in #2903
- feat: allow dev.client.port to be a number by @chenjiahan in #2907
- feat(create-rsbuild): add framework alias and validate input by @chenjiahan in #2922
- feat(deps): bump rspack 1.0.0-alpha.4 by @9aoy in #2936
- feat: add
htmlPlugin
andrspackConfig
template parameters by @chenjiahan in #2938 - feat: add environments as a filter of
api.transform
by @chenjiahan in #2947 - feat(deps): bump Rspack 1.0.0-alpha.5 by @chenjiahan in #2949
- feat: add new plugin API to process assets by @chenjiahan in #2966
- feat: allow to process assets for specific target by @chenjiahan in #2967
- feat: allow to access environment context in transform API by @chenjiahan in #2968
- feat: allow to access environment context in process assets by @chenjiahan in #2970
- feat: allow to access compiler in modifyHTMLTags hook by @chenjiahan in #2975
- feat: add sources param to api.processAssets by @chenjiahan in #2987
- feat: support add plugins for specified environment by @9aoy in #2986
- feat: more plugins support used as environment plugin by @9aoy in #2994
- feat: add environments as a filter of
api.processAssets
by @chenjiahan in #3009 - feat: enable inline chunks based on conditions through output options by @Thulof in #3000
- feat(deps): bump Rspack 1.0.0-beta.0 by @chenjiahan in #3022
- feat: allow absolute output path for inspectConfig by @chenjiahan in #3024
- feat: enable lightningcss-loader by default by @chenjiahan in #3034
- feat: add new
tools.lightningcssLoader
config by @chenjiahan in #3043 - feat: add
isWatch
param to determine whether it is watch mode when build by @9aoy in #3065 - feat: support only build specified environment by @9aoy in #3059
- feat: bump Rspack 1.0.0-beta.1 by @chenjiahan in #3072
- feat(core): add
type
option todev.watchFiles
to support reload server by @kurorinto in #3069 - feat: allow to disable buit-in lightningcss-loader by @chenjiahan in #3082
- feat!:
onBeforeBuild
hook supports calling multiple times in watch mode by @9aoy in #3066 - feat: support using
<port>
indev.assetPrefix
by @colinaaa in #3098 - feat(deps): bump Rspack 1.0.0-beta.2 by @chenjiahan in #3113
- feat: add environment hooks about compiler by @9aoy in #3108
- feat: allow to configure `output.filenam...
v1.0.1-rc.5
What's Changed
Bug Fixes 🐞
- fix: failed to use html-loader by @chenjiahan in #3384
- fix(plugin-stylus): updated StylusOptions type by @sudhakar-selva in #3392
- fix: lightningcss-loader not work when using PostCSS by @chenjiahan in #3396
Document 📖
- docs: fix rsdoctor link by @iamdin in #3379
- docs: add eslint plugin guide in CRA migration by @9aoy in #3383
- docs: improve
output.charset
by @chenjiahan in #3389 - docs: add tip for deprecated tilde by @chenjiahan in #3391
- docs(zh): updated StylusOptions type by @chenjiahan in #3393
- docs: should manually call loadEnv method when using Rsbuild Environment API by @9aoy in #3395
Other Changes
- chore(deps): update dependency sass to ^1.78.0 by @renovate in #3386
- chore(deps): update rspress to v1.29.0 by @renovate in #3388
- chore(deps): update dependency sass-embedded to ^1.78.0 by @renovate in #3387
- test(e2e): skip unstable MF case in Windows by @chenjiahan in #3390
New Contributors
- @iamdin made their first contribution in #3379
- @sudhakar-selva made their first contribution in #3392
Full Changelog: v1.0.1-rc.4...v1.0.1-rc.5
v1.0.1-rc.4
What's Changed
New Features 🎉
- feat(deps): bump Rspack 1.0.2 by @chenjiahan in #3375
- feat(deps): bump Rspack 1.0.3 by @chenjiahan in #3378
Bug Fixes 🐞
- fix: skip resolution if Rsdoctor plugin is registered by @chenjiahan in #3370
Document 📖
- docs(website): typo for easy to configure text on homepage by @aryan1306 in #3371
Other Changes
- chore(deps): update dependency picocolors to ^1.1.0 by @renovate in #3366
- chore(deps): update dependency vue to ^3.5.0 by @renovate in #3367
- chore(deps): update dependency svelte-check to v4 by @renovate in #3368
- chore: format all files by @chenjiahan in #3369
- test(e2e): validate all production source map types by @chenjiahan in #3376
New Contributors
- @aryan1306 made their first contribution in #3371
Full Changelog: v1.0.1-rc.3...v1.0.1-rc.4
v1.0.1-rc.3
What's Changed
New Features 🎉
- feat(deps): bump Rspack v1.0.1 by @chenjiahan in #3360
- feat: support nested plugins by @9aoy in #3348
- feat: export more sub-types of Rsbuild config by @chenjiahan in #3351
Bug Fixes 🐞
- fix: correct proxy options type by @chenjiahan in #3352
- fix: resolve mjs extension before js by @chenjiahan in #3359
- fix(plugin-swc): should verify the version correctly by @yimingjfe in #3364
Document 📖
- docs: improve selecting SWC plugin version by @chenjiahan in #3346
- docs: correct addPlugins type by @9aoy in #3347
- docs: remove repeat info in rsbuild-0-x.mdx by @GaryHjy in #3356
- docs: remove repeat info in en rsbuild-0-x.mdx by @GaryHjy in #3355
- docs(landingpage): new landingpage aligned with Rspack by @SoonIter in #3349
Other Changes
- chore: change security report email by @chenjiahan in #3350
New Contributors
- @GaryHjy made their first contribution in #3356
- @yimingjfe made their first contribution in #3364
Full Changelog: v1.0.1-rc.2...v1.0.1-rc.3
v1.0.1-rc.2
What's Changed
Bug Fixes 🐞
- fix(create-rsbuild): broken shebang line in bin file by @chenjiahan in #3344
Full Changelog: v1.0.1-rc.1...v1.0.1-rc.2
v1.0.1-rc.1
What's Changed
New Features 🎉
- feat: add stats to the return value of
rsbuild.build
by @chenjiahan in #3325 - feat: add
dev.client.reconnect
option by @chenjiahan in #3333
Bug Fixes 🐞
- fix: align stats types with Rspack by @chenjiahan in #3324
- fix:
rsbuild.build
always return close method by @chenjiahan in #3327 - fix: escape characters in compilationId by @chenjiahan in #3334
- fix: remove lib-lodash from experience chunks by @chenjiahan in #3337
- fix: increase WebSocket reconnect interval by @chenjiahan in #3339
Document 📖
- docs: add guide for other Rspack targets by @chenjiahan in #3299
- docs: add guide for error overlay by @chenjiahan in #3303
- docs: Update html-template.mdx by @tguelcan in #3305
- docs: use cross-env to set env var by @chenjiahan in #3306
- docs: update server.open guide rsbuild-0-x.mdx by @sozonome in #3307
- docs: remove duplicated html tags example by @chenjiahan in #3308
- docs: add Rspack config validation to migration guide by @chenjiahan in #3309
- docs: remove import keyword in example by @9aoy in #3311
- docs: improve build profiling guide by @chenjiahan in #3312
- docs: config migration table by @chenjiahan in #3313
- docs: fix Benchmark graph width by @chenjiahan in #3317
- docs: add SECURITY.md by @chenjiahan in #3319
- docs: add /api in the example of server.proxy by @gcdxuzhiwei in #3320
- docs: add vite environment variables migrate guide by @Saltro in #3321
- docs(create-rsbuild): update README by @chenjiahan in #3323
Other Changes
- chore(deps): update dependency @module-federation/rspack to v0.6.0 by @renovate in #3301
- refactor(create-rsbuild): based on create-rstack by @chenjiahan in #3315
- refacor(create-rsbuild): use Rslib to bundle package by @chenjiahan in #3316
- doc: improve reload page in watch-files.mdx by @liyincode in #3318
- chore(deps): update dependency @babel/plugin-transform-class-properties to ^7.25.4 - autoclosed by @renovate in #3283
- chore(ci): add timeout for e2e and unit tests by @Jayllyz in #3326
- chore: reduce any type by @chenjiahan in #3329
- chore: reuse source map type from Rspack by @chenjiahan in #3330
- chore: merge config types to a single file by @chenjiahan in #3331
- chore(deps): update dependency @swc/plugin-remove-console to v3 by @renovate in #3332
- chore(deps): update playwright monorepo to v1.46.1 by @renovate in #2725
- Revert "chore(deps): update playwright monorepo to v1.46.1 (#2725)" by @chenjiahan in #3338
- chore(deps): update all patch dependencies by @renovate in #3340
New Contributors
- @tguelcan made their first contribution in #3305
- @sozonome made their first contribution in #3307
- @gcdxuzhiwei made their first contribution in #3320
- @Saltro made their first contribution in #3321
- @Jayllyz made their first contribution in #3326
Full Changelog: v1.0.1-rc.0...v1.0.1-rc.1
v1.0.1-rc.0
What's Changed
Breaking Changes 💡
- feat!: enable Rspack config schema validation by default by @chenjiahan in #3295
- fix!: remove transformImport false option by @9aoy in #3289
New Features 🎉
- feat(deps): bump Rspack 1.0.0 by @chenjiahan in #3297
- feat: minify CSS for injected styles by @chenjiahan in #3272
- feat: allow to override Rspack config validate env by @chenjiahan in #3292
Bug Fixes 🐞
- fix: avoid passing unsupported Rspack config by @chenjiahan in #3293
Document 📖
- docs: update EJS usage by @chenjiahan in #3275
Other Changes
- test(e2e): improve helper for going to page by @chenjiahan in #3274
- chore(deps): update dependency typescript-eslint to ^8.2.0 by @renovate in #3276
- chore(deps): update dependency webpack to ^5.94.0 by @renovate in #3277
- chore: move vue2 plugin to separate repo by @chenjiahan in #3278
- test(e2e): update const enum test case by @chenjiahan in #3281
- chore(deps): update all patch dependencies by @renovate in #3282
Full Changelog: v1.0.1-beta.16...v1.0.1-rc.0
v1.0.1-beta.16
What's Changed
New Features 🎉
- feat(deps): bump Rspack 1.0.0-rc.0 by @chenjiahan in #3268
- feat: expose
server.printUrls
method by @chenjiahan in #3260 - feat: add
environments
toonAfterStartProdServer
by @colinaaa in #3264 - feat: transformImport support function type by @9aoy in #3266
Performance 🚀
- perf: replace dev middleware with a lightweight version by @chenjiahan in #3257
Bug Fixes 🐞
- fix(webpack): no longer need to set NODE_ENV by @chenjiahan in #3255
- fix: not inline scripts / styles when enable not set by @9aoy in #3258
- fix: should terminate http server correctly by @chenjiahan in #3261
- fix: server.close should close http server by @chenjiahan in #3263
- fix(deps): use caret version for swc helpers by @SevereCloud in #3269
- fix(mf): should compile
@module-federation/sdk
by @chenjiahan in #3270
Document 📖
- docs: improve 0.x migration guide by @chenjiahan in #3252
- docs: polish README by @chenjiahan in #3262
- docs: add developing environment plugins guide by @9aoy in #3265
- docs: correct the default HTML template by @chenjiahan in #3267
Other Changes
- refactor: simplify get dev middleware by @chenjiahan in #3256
- chore: remove unused outputFileSystem from server instance by @chenjiahan in #3259
New Contributors
- @SevereCloud made their first contribution in #3269
Full Changelog: v1.0.1-beta.15...v1.0.1-beta.16
v1.0.1-beta.15
What's Changed
Breaking Changes 🍭
- feat!: change default charset to utf8 by @chenjiahan in #3250
New Features 🎉
- feat: set default entry when entry is set to an empty object by @Timeless0911 in #3225
- feat: allow to custom web app manifest filename by @chenjiahan in #3228
- feat: add mime type for web app manifest by @chenjiahan in #3234
- feat: allow to specify target for app icons by @chenjiahan in #3235
- feat: allow to set URL as app icon by @chenjiahan in #3237
- feat: allow to disable HTML for specific entry by @chenjiahan in #3246
Performance 🚀
- perf: use compilation.inputFileSystem to read app icons by @chenjiahan in #3226
Document 📖
- docs: update documentation for
html.appIcon
by @chenjiahan in #3223 - docs: add app icon to website by @chenjiahan in #3238
- docs: add example for inlining async chunks by @chenjiahan in #3241
- docs: update Rspack stack layers by @chenjiahan in #3243
- docs: add more breaking changes about rsbuild 1.0 by @9aoy in #3245
Other Changes
- chore: simplify plugin-swc inspected config by @9aoy in #3224
- chore(deps): update dependency nx to ^19.6.0 by @renovate in #3233
- chore(deps): update dependency @module-federation/rspack to v0.5.0 by @renovate in #3232
- chore(deps): update dependency typescript-eslint to ^8.1.0 by @renovate in #3236
- chore: move vue2-jsx plugin to separate repo by @chenjiahan in #3239
- chore(deps): update all patch dependencies by @renovate in #3242
- test: update ip in test files by @chenjiahan in #3248
Full Changelog: v1.0.1-beta.14...v1.0.1-beta.15
v1.0.1-beta.14
What's Changed
Breaking Change 💡
- feat!: support generating web app manifest when using
html.appIcon
by @chenjiahan in #3219 - feat!: use
connectWebSocket
instead ofonHTTPUpdate
method by @9aoy in #3216 - feat(deps): bump Rspack 1.0.0-beta.5 by @chenjiahan in #3221
New Features 🎉
- feat(create-rsbuild): improve tool selection instruction in prompt by @BrinsilElias in #3208
- feat:
output.cleanDistPath
defaults toauto
by @chenjiahan in #3213
Bug Fixes 🐞
- fix: clean rsbuild outputs by default by @9aoy in #3210
- fix: missing default mode when using
rsbuild.startDevServer
by @chenjiahan in #3214
Document 📖
- docs(type-check): add exclude examples by @chenjiahan in #3207
- docs: enable strict SSG and update X logo by @chenjiahan in #3218
Other Changes
- doc: fix typo in security by @liyincode in #3209
- chore(deps): update dependency @module-federation/rspack to v0.4.0 by @renovate in #3211
- chore(deps): update rspress to v1.28.0 by @renovate in #3212
- test(e2e): add cases for
html.appIcon
by @chenjiahan in #3222
Full Changelog: v1.0.1-beta.13...v1.0.1-beta.14