Node binding for rspack
Last release 2 days ago
27 Aug 2026
Ships on a steady schedule
a new release about every 2 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
1118 releases ยท first in 2022
Release timeline
1118 releases since 2022One column per quarter.
Releases
- 0.3.7-canary-65b6746-2023102009301920 Oct 2023pre-release
Nothing published for this version
- 0.3.7-canary-43f3ac9-2023102304185523 Oct 2023pre-release
Nothing published for this version
- 0.3.7-canary-24cca4f-2023101710295917 Oct 2023pre-release
Nothing published for this version
- 0.3.62 Oct 2023
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.3.6 -->
What's Changed
Bug Fixes ๐
- fix: fix
Rule.oneOfandRule.rulesby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4254 - fix(rspack_loader_swc): Fail the build when jsc.target and env are used together for the SWC loader by @Hamzakh777 in https://github.com/web-infra-dev/rspack/pull/4257
- fix: type error when use builtins:swc-loader and disableTransformByDefault by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4256
- fix: css chunk loading missing chunkIds by @JSerFeng in https://github.com/web-infra-dev/rspack/pull/4266
Other Changes
- chore: change nightly release notification to discord other than github issue by @hardfist in https://github.com/web-infra-dev/rspack/pull/4271
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.5...v0.3.6
- fix: fix
- 0.3.6-canary-d9952e8-202310090256479 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-9cae447-202310081353138 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-8a2990b-2023101102415611 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-656f773-202310080209198 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-52f8943-202310020827022 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-3cea4a1-2023101601031416 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-200059b-2023101301064513 Oct 2023pre-release
Nothing published for this version
- 0.3.6-canary-200059b-2023101202570712 Oct 2023pre-release
Nothing published for this version
- 0.3.526 Sept 2023
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.3.5 -->
Highlights
rspackFuture.disableTransformByDefault
Default transformation was a default strategy for transform introduced v0.1.x. This introduced ton of problems during our daily development. For example, excluding node_modules for certain libraries are not supported, thus, which results in some mis-transformations. From now on, you can opt-in
experiments.rspackFuture.disableTransformByDefault = trueto disable the internal transformations. This greatly aligns Rspack with Webpack architecture. By enabling this option, these few options are not able to use anymore:- builtins.react
- builtins.pluginImport
- builtins.emotion
- builtins.relay
- bulitins.presetEnv
- builtins.decorator
- target: target is now only supported to transform runtime code generated by Rspack, please refer to
builtin:swc-loaderfor user code transformation for Rspack.
Builtin types(Rule.type) are removed in favor of webpack's web-standard bundling:
- jsx, jsx/auto, jsx/esm, jsx/dynamic
- ts, tsx
We will come up a new strategy to add back these DX friendly features in the future. Instead, builtin:swc-loader is added for fine-grained transformation. Please refer to this guide for the migration and details.
react-refresh migration
In this version, we'd like to introduce a better way to enable react fast refresh with @rspack/plugin-react-refresh, which is more powerful and flexible than builtins.react.refresh = true, now you can use it with builtin:swc-loader, swc-loader, or babel-loader. Checkout docs for more details
Deprecating builtin:sass-loader
builtin:sass-loader is deprecated in favor of sass-loader. You can still use it in this and the next minor version. It will be officially removed in v0.5.0. See this for our deprecation stages.
Optimize the progress bar style
- Thinner and shorter lines
- Removed progress text
- Green color
Preview:
https://github.com/web-infra-dev/rspack/assets/7237365/b11fd939-560d-4a47-83c3-f81a136bae3d
What's Changed
Something
Performance Improvements โก
- perf: remove
panic_hookby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4210 - perf: parallelize swc js minify by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4213
Exciting New Features ๐
- feat(rspack_core): oxc_resolver v0.2.0 by @Boshen in https://github.com/web-infra-dev/rspack/pull/4192
- feat: support disabling default transformation by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4054
- feat(progress): optimize the progress bar style by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/4197
- feat: disableReactRefreshByDefault future flag by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4196
- feat: export HMR plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4199
- feat: deprecate
builtin:sass-loaderby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4226 - feat: support
output.hotUpdateGlobalby @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4227 - feat: add side effects detect by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4215
- feat: builtin:react-refresh-loader by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4230
- feat: support
includeandexcludeof react-refresh-rspack-plugin by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4233 - feat: support object external item value by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4234
Bug Fixes ๐
- fix: shouldn't always apply react refresh plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4194
- fix: fix module source-map by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4200
- fix: remove
reactfromrspackExperimentsofbuiltin:swc-loaderby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4221 - fix: merge disableReactRefreshByDefault to disableTransformByDefault by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4220
- fix: missing rspack-only plugins on compiler.webpack by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4223
- fix: filter export imported specifier used name . by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4229
- fix: fix react-refresh
selfis not defined by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4232 - fix: react refresh test windows failed by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4242
- fix: avoid double react refresh transform in rspack-dev-server by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4243
- fix: passing option as
&strcaused memory leak inbuiltin:swc-loaderby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4235 - fix(chore): fix node path compatible problem & add express example by @hardfist in https://github.com/web-infra-dev/rspack/pull/4248
- fix: $RefreshReg$ is not defined error in node_modules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4251
Other Changes
- chore: ๐ค generat webpack based tree shaking test snapshot. by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4186
- refactor: public path runtime module by @underfin in https://github.com/web-infra-dev/rspack/pull/4193
- style(rspack_plugin_progress): Change the formatting style to match WebpackBar by @Hamzakh777 in https://github.com/web-infra-dev/rspack/pull/4201
- test: pass more tree shaking test case by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4191
- chore: more tree shaking test2 by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4208
- refactor: change method on
ExportsInfoIdalign to webpack by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4209 - chore: fix example dep by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4218
- chore: fix example-emotion by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4222
- chore: worklet example & express example by @hardfist in https://github.com/web-infra-dev/rspack/pull/4237
- chore: add builtins.react/... only works for transformByDefault tip by @9aoy in https://github.com/web-infra-dev/rspack/pull/4249
- chore: fix lockfile by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4252
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.4...v0.3.5
- 0.3.5-canary-f25e05e-2023093014504230 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-d22c6ee-2023101716273217 Oct 2023pre-release
Nothing published for this version
- 0.3.5-canary-c69b2ea-202310080808148 Oct 2023pre-release
Nothing published for this version
- 0.3.5-canary-afcfe8b-2023092710123827 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-9b26fc8-2023092701062227 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-8819ada-2023093001104430 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-8819ada-2023092801103428 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-8496bc5-2023093007594630 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-56d8056-2023092808035828 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-3b44737-202310040114184 Oct 2023pre-release
Nothing published for this version
- 0.3.5-canary-3b44737-202310020052342 Oct 2023pre-release
Nothing published for this version
- 0.3.5-canary-201c741-2023092617200726 Sept 2023pre-release
Nothing published for this version
- 0.3.5-canary-10b7fe6-202310081438358 Oct 2023pre-release
Nothing published for this version
- 0.3.413 Sept 2023
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.3.4 -->
Highlight
Internal plugins
To further improve Rspack's compatibility with webpack ecosystem, we implemented internal plugins in Rspack. For example, you can use
rspack.XxxPluginin your configuration.const rspack = require('@rspack/core'); module.exports = { plugins: [ new rspack.DefinePlugin({ 'process.env.NODE_ENV': "'production'", }), // In addition to webpack's existing plugins, some of the plugins implemented // in rust in Rspack are also exported by internal plugins new rspack.HtmlRspackPlugin({ template: './index.html' }), ], };Or use
compiler.webpack.XxxPluginin your plugin.class ReactRefreshRspackPlugin { apply(compiler) { const reactRefreshPath = require.resolve("../client/reactRefresh.js"); const reactRefreshEntryPath = require.resolve("../client/reactRefreshEntry.js"); new compiler.webpack.EntryPlugin(compiler.context, reactRefreshEntryPath, { name: undefined }).apply(compiler); new compiler.webpack.ProvidePlugin({ $ReactRefreshRuntime$: reactRefreshPath }).apply(compiler); } };@rspack/plugin-react-refresh
Thanks to the implementation of internal plugins, we can now easily implement the
@rspack/plugin-react-refresh, which was coupled into@rspack/dev-serverbefore. Now, if you are using a custom dev server instead of@rspack/dev-serveror@rspack/cli, you can easily enable react fast refresh by adding the@rspack/plugin-react-refreshplugin. SeeCompatible with html-webpack-plugin
Rspack is now html-webpack-plugin compatible!
const path = require("node:path") const HtmlWebpackPlugin = require("html-webpack-plugin") module.exports = { plugins: [ new HtmlWebpackPlugin({ template: "pug-loader!" + path.join(__dirname, "template.pug") }) ] }builtin:swc-loadersupports builtin transformationsThese fields served as the alternative to the current builtin transform options, aiming to support transforming with respect to the certain module.
type RspackExperiments = { react?: ReactOptions; import?: PluginImportOptions; emotion?: EmotionOptions; relay?: RelayOptions; };For example, integrating emotion transformation in the project:
module.exports = { module: { rules: [ { test: /\.jsx$/, exclude: /node_modules/, loader: "builtin:swc-loader", options: { jsc: { parser: { syntax: "ecmascript", jsx: true, } }, rspackExperiments: { emotion: true } } } ] } }What's Changed
Performance Improvements โก
- perf: optimize process assets by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/4116
Exciting New Features ๐
- feat: flagDependencyUsagePlugin by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4114
- feat(core): add cache hits info to stats by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4140
- feat: HarmonyExportImportedSpecifierDependency get mode by @underfin in https://github.com/web-infra-dev/rspack/pull/4141
- feat: support
builtin:swc-loaderexperimental transformers by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4133 - feat: support stats ids by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4148
- feat: support function for
BannerPluginby @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4151 - feat: react refresh plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4135
- feat: expose
keepFnNamesandkeepClassNamesoptions of builtin swc minfier by @xinxinhe1810 in https://github.com/web-infra-dev/rspack/pull/4121 - feat(config): warn while using
experiments.newSplitChunksby @hyf0 in https://github.com/web-infra-dev/rspack/pull/4169 - feat(config): only warn while
experiments.newSplitChunksbeing explicitly setted by @hyf0 in https://github.com/web-infra-dev/rspack/pull/4174 - feat: compatible with html-webpack-plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4175
- feat: combine three tree shaking related plugin, and add corresponding configuration. by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4147
- feat: add externalsPresets webAsync target support by @lippzhang in https://github.com/web-infra-dev/rspack/pull/4184
- feat: add boolean type for builtins.html[0].inject by @lippzhang in https://github.com/web-infra-dev/rspack/pull/3771
Bug Fixes ๐
- fix: console should not appear here by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4145
- fix: vue3 hmr by @underfin in https://github.com/web-infra-dev/rspack/pull/4149
- fix: patch
sendStatsof webpack-dev-server by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4101 - fix(css/modules): bump swc version to fix #3875 and add test by @Thiry1 in https://github.com/web-infra-dev/rspack/pull/4144
- fix: ignoreWarnings should work when call stats.getJson by @9aoy in https://github.com/web-infra-dev/rspack/pull/4153
- fix: export client dir in react-refresh-plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4164
- fix: resolve async css chunk loading promise by @underfin in https://github.com/web-infra-dev/rspack/pull/4165
- fix: chunkLoading false by @underfin in https://github.com/web-infra-dev/rspack/pull/4167
- fix(core): add AbstractMethodError and fix references by @jkzing in https://github.com/web-infra-dev/rspack/pull/4170
- fix: perf regression caused by optimizeTree hook by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4185
Other Changes
- chore: format PR template by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4138
- chore: disable sync document when closed merge request by @hardfist in https://github.com/web-infra-dev/rspack/pull/4142
- chore: takedown down monaco-editor example build in ci by @hardfist in https://github.com/web-infra-dev/rspack/pull/4146
- test: snapshot css modules separately by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4155
- chore: fix publish problems of react-refresh by @hardfist in https://github.com/web-infra-dev/rspack/pull/4161
- chore: add profile syntax comment by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4166
- refactor: naming to RspackPlugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4156
- ci: refine artifact publishing by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4178
- chore: ๐ค remove unnecessary snapshot files by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4179
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.2...v0.3.4
- 0.3.4-canary-e603ae1-2023092107461421 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-e030499-2023091501353715 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-c652372-2023092101013521 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-c2c7876-2023092504245125 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-c2b97a1-2023091514275315 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-9d910ae-2023091801061018 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-6807989-2023092001070020 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-5fd8007-2023091401020514 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-56f4c06-2023092505080525 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-2de9c77-2023092213583522 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-287bc09-2023091601025616 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-250f34b-2023092201062022 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-1d65710-2023091308393213 Sept 2023pre-release
Nothing published for this version
- 0.3.4-canary-0e9b4ab-2023091701451617 Sept 2023pre-release
Nothing published for this version
- 0.3.313 Sept 2023
Nothing published for this version
- 0.3.3-canary-f645a58-2023091204195512 Sept 2023pre-release
Nothing published for this version
- 0.3.3-canary-3606e2b-2023091507392615 Sept 2023pre-release
Nothing published for this version
- 0.3.3-canary-0f5a67f-2023091304061213 Sept 2023pre-release
Nothing published for this version
- 0.3.26 Sept 2023
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.3.2 -->
What's Changed
Exciting New Features ๐
- feat: FlagDependencyExports part 1 by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4045
- feat: moving builtins options to builtin plugins by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4012
- feat: implement HarmonyExportSpecifierDependency get_exports by @underfin in https://github.com/web-infra-dev/rspack/pull/4052
- feat: implement dependency get_referenced_exports by @underfin in https://github.com/web-infra-dev/rspack/pull/4069
- feat: expose
EntryPluginby @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4073 - feat: provide exports p2 by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4057
- feat: expose
ExternalsPluginby @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4083 - feat: export externals plugin and node target plugin, electron target plugin by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4094
- feat: initialize future flags by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4107
- feat: Support passing string to splitChunks.{cacheGroup}.test by @Hamzakh777 in https://github.com/web-infra-dev/rspack/pull/3673
- feat(core): code generation module hash by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4096
- feat(rspack_core): add oxc_resolver (turned off by default) by @Boshen in https://github.com/web-infra-dev/rspack/pull/4108
Bug Fixes ๐
- fix: source map not update when hmr by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4055
- fix: sort import var at wasm codegen by @underfin in https://github.com/web-infra-dev/rspack/pull/4071
- fix: umd analyze by @underfin in https://github.com/web-infra-dev/rspack/pull/4085
- fix: make dev-server compatible with globalThis by @ja-plus in https://github.com/web-infra-dev/rspack/pull/4087
- fix: upgrade swc by @hardfist in https://github.com/web-infra-dev/rspack/pull/4088
- fix(runtime): should calculate installed css chunks correctly by @hyf0 in https://github.com/web-infra-dev/rspack/pull/4072
- fix: align stats.modulesSpace default behaivor with webpack by @9aoy in https://github.com/web-infra-dev/rspack/pull/4095
- fix: avoid inject refresh runtime for it self by @underfin in https://github.com/web-infra-dev/rspack/pull/4092
- fix: css loading module should render initial_chunk_ids by @underfin in https://github.com/web-infra-dev/rspack/pull/4110
- fix: improve interoperability of rules with side-effects by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4115
- fix:
builtin:swc-loaderdoes not report error correctly by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4111 - fix: test snapshot path by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4132
- fix: use module.rules.include to avoid runtime inject it self by @underfin in https://github.com/web-infra-dev/rspack/pull/4134
- fix: css loading initial chunks by @underfin in https://github.com/web-infra-dev/rspack/pull/4136
Other Changes
- chore: run oxlint on all files during lint-staged (for now) by @Boshen in https://github.com/web-infra-dev/rspack/pull/4053
- chore: improve code format by @SnowingFox in https://github.com/web-infra-dev/rspack/pull/4042
- chore: use cargo insta go generate snapshot by @hardfist in https://github.com/web-infra-dev/rspack/pull/4056
- chore: fix cache problem by @hardfist in https://github.com/web-infra-dev/rspack/pull/4058
- chore: move all snapshot to insta by @hardfist in https://github.com/web-infra-dev/rspack/pull/4061
- chore: takedown node14 test on windows by @hardfist in https://github.com/web-infra-dev/rspack/pull/4068
- chore: skip empty test folder by @hardfist in https://github.com/web-infra-dev/rspack/pull/4077
- ci: only run
merge_grouptests on check being requested by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4086 - revert: "ci: reduce binary size" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4090
- ci: take down windows test by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4100
- chore: Upgraded
semverto6.3.1by @GarrisonD in https://github.com/web-infra-dev/rspack/pull/4102 - chore: refactor exports info by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4104
- chore: add license check by @hardfist in https://github.com/web-infra-dev/rspack/pull/4097
- ci: take down windows test, again by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4109
- revert: apply entry and externals eagerly by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4105
- chore: increase windows ci test timeout minutes by @underfin in https://github.com/web-infra-dev/rspack/pull/4122
- chore: expose statsModule.nameForCondition by @9aoy in https://github.com/web-infra-dev/rspack/pull/4119
- chore: ๐ค align webpack factory meta by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4125
- chore: add documenation link notice of pull request template by @hardfist in https://github.com/web-infra-dev/rspack/pull/4106
- chore: use cross-env by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4130
- refactor: zod schema and normalized types by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/4098
New Contributors
- @SnowingFox made their first contribution in https://github.com/web-infra-dev/rspack/pull/4042
- @ja-plus made their first contribution in https://github.com/web-infra-dev/rspack/pull/4087
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.1...v0.3.2
- 0.3.2-canary-f25e0f2-2023091001041410 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-f25e0f2-202309090103039 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-edaf4e2-2023091109152211 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-ec29671-202309061201466 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-bf15a92-2023091103590311 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-bd64126-202309080059368 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-bcdcc4b-2023091102452611 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-bcdcc4b-2023091004261410 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-b047aa7-202309070525557 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-7f87154-2023091207431812 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-7d85ad3-2023091207383812 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-36b72b2-202309070107077 Sept 2023pre-release
Nothing published for this version
- 0.3.2-canary-2d69b54-2023091112333111 Sept 2023pre-release
Nothing published for this version
- 0.3.129 Aug 2023
Release notes
Open source โ<!-- Release notes generated using configuration in .github/release.yml at v0.3.1 -->
Highlight
Support option
resolveLoaderWith this option, you can specify the resolving strategy for each loader.
For example, if you are developing a loader and want to showcase its usage from a user's perspective in an example, you can write:
module.exports = { resolveLoader: { alias: { 'amazing-loader': require.resolve('path-to-your-amazing-loader'), }, }, };Then, in the example code, you can write:
require('!!amazing-loader!./amazing-file.js');What's Changed
Performance Improvements โก
- perf: reduce BuildMeta size by @underfin in https://github.com/web-infra-dev/rspack/pull/4027
- perf: reduce ModuleGraphModule memory size by @underfin in https://github.com/web-infra-dev/rspack/pull/4034
- perf: merge HarmonyImportSideEffectDependency into HarmonyImportDependency by @underfin in https://github.com/web-infra-dev/rspack/pull/4037
- perf: reduce task structs memory size by @underfin in https://github.com/web-infra-dev/rspack/pull/4035
Exciting New Features ๐
- feat(webpack-tree-shaking): side effects plugin by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4007
- feat: merge same init fragments by @underfin in https://github.com/web-infra-dev/rspack/pull/4004
- feat: cjs analyze by @underfin in https://github.com/web-infra-dev/rspack/pull/3962
- feat: add HarmonyImportSideEffectDependency by @underfin in https://github.com/web-infra-dev/rspack/pull/4010
- feat: support option
resolveLoaderby @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4008 - feat: export
Watchingtype by @hardfist in https://github.com/web-infra-dev/rspack/pull/4014 - feat: support
identfor builtin loader by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4038
Bug Fixes ๐
- fix: disable DevtoolPlugin when options.devtool=false by @LingyuCoder in https://github.com/web-infra-dev/rspack/pull/4005
- fix(runtime): should calculate
initial_chunkscorrectly by @hyf0 in https://github.com/web-infra-dev/rspack/pull/4022 - fix: tree shaking transitive bailout by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/4017
- fix: add workaround for accessing previous stats by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4028
Other Changes
- chore: add benchmark test for merge queue by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/3995
- chore: update benchmark website by @hardfist in https://github.com/web-infra-dev/rspack/pull/4025
- ci: reduce binary size by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4018
- refactor: changed ModuleGraph dependencies to BoxDependency by @underfin in https://github.com/web-infra-dev/rspack/pull/4026
- chore: fix html test by @hardfist in https://github.com/web-infra-dev/rspack/pull/4023
- refactor(rspack_loader_runner): remove nodejs_resolver dependency by @Boshen in https://github.com/web-infra-dev/rspack/pull/3982
- revert: "fix: getHash occasionally panic when rebuild (#3970)" by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/4029
- chore: fix nestjs example by @hardfist in https://github.com/web-infra-dev/rspack/pull/4011
- refactor: add InitFragment trait by @underfin in https://github.com/web-infra-dev/rspack/pull/4046
- refactor(rspack_core): implement resolver proxy by @Boshen in https://github.com/web-infra-dev/rspack/pull/4048
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.3.0...v0.3.1