Core features
Breaking Changes
In the previous release, Rspack incorrectly supported [ext]
in output.filename
, we are removing [ext]
support in output.filename
in 0.1.12 to align with webpack, which may be a breaking change for applications using [ext]
in output.filename. see #3270 (comment) for migration guide from previous release.
Support resolve.exportsFields
Support set exportsFields
in package.json that are used for resolving module requests
module.exports = {
//...
resolve: {
exportsFields: ['source', '...'],
},
};
Support https://github.com/TypeStrong/fork-ts-checker-webpack-plugin
you can use fork-ts-checker-webpack-plugin directly in rspack to typecheck your codebase.
Support dataURI
import a from 'data:text/javascript,export default "a";';
expect(a).toBe("a");
What's Changed
Performance Improvements ⚡
- perf: skip call chunkAsset hook when not in use by @jerrykingxyz in #3228
Exciting New Features 🎉
- feat(core): support webpack-manifest-plugin by @hardfist in #3163
- feat(library): support system.js by @suxin2017 in #3124
- feat(resolve): support custom exports fields by @bvanjoi in #3186
- feat: add output.hotUpdateMainFilename & output.hotUpdateChunkFilename by @underfin in #3188
- feat: data uri support by @ahabhgk in #3220
- feat(types): support string or object in copy.patterns array by @9aoy in #3218
- feat: add scheme, mimetype, and resourceFragment rule condition by @ahabhgk in #3238
- feat: normal module factory after resolve hooks by @IWANABETHATGUY in #3060
- feat: add support for
Rule.loader
andRule.options
by @h-a-n-a in #3246 - feat(module_optional): support require.resolve and require.resolveWeak by @suxin2017 in #3237
- feat: add afterCompile hook by @edusperoni in #3235
Bug Fixes 🐞
- fix(license-plugin): add support for license-plugin in case of perChunkOutput as false by @dgmachado in #3172
- fix: 🐛 don't crash when export * of external module by @IWANABETHATGUY in #3167
- fix(magic_comment): support '()' by @suxin2017 in #3179
- fix: add experiments.css schema by @9aoy in #3183
- fix(plugin-node-polyfill): remove console polyfill by @KyrieLii in #3191
- fix: wasm loading runtime on node-18 by @ahabhgk in #3197
- fix: render exports for esm output at hmr by @underfin in #3194
- fix: export-all-from-side-effects-free-commonjs by @IWANABETHATGUY in #3181
- fix: fix provide can't be override by user by @zhangliu in #3201
- fix: provided dependency generated code not stable by @ahabhgk in #3204
- fix: ci clippy by @IWANABETHATGUY in #3208
- fix: context module elimated by @IWANABETHATGUY in #3151
- fix: 🐛 amd external-array by @IWANABETHATGUY in #3226
- fix(dev-client): remove some unused dependencies by @chenjiahan in #3244
- fix:
source
could be unavailable if asset was deleted by @h-a-n-a in #3250 - fix(core): upgrade regress to 0.6.0 to fix regress compile regex error by @hardfist in #3251
Other Changes
- chore: 🤖 fix cargo test crash by @IWANABETHATGUY in #3178
- refactor: compilation getPath by @ahabhgk in #3143
- chore: console error info when ./x failed by @hardfist in #3175
- chore: fix arco-pro example crashing in debug mode by @Boshen in #3192
- chore: fix arco-pro crash again by @hardfist in #3195
- chore: fix fix-issue-3873 crash by @hardfist in #3196
- chore: fix node16 tests by @hardfist in #3200
- ci: add test Node.js v18 by @Boshen in #3168
- chore: fix jest crash on node by @hardfist in #3206
- ci: create issue in rspack-website when a pr is merged with "need documentation" label by @Boshen in #3211
- chore: add repro link to the bug issue template by @Boshen in #3225
- chore: add
x ready
command for running everything by @Boshen in #3230 - ci: remove unnecessary
test
option from reusable-build by @Boshen in #3245 - ci: automatically create Tuesday's release PR by @Boshen in #3248
- chore: add debug shell by @hardfist in #3261
- chore: fix debug shell by @hardfist in #3264
- ci: remove nightly step from full release by @Boshen in #3265
- chore: progressively migrate webpack test case by @IWANABETHATGUY in #3256
New Contributors
- @zhangliu made their first contribution in #3201
- @edusperoni made their first contribution in #3235
Full Changelog: v0.1.11...v0.1.12