v0.1.12
版本发布时间: 2023-05-23 17:30:31
web-infra-dev/rspack最新发布版本:v0.3.13(2023-11-15 21:30:09)
Core features
Support resolve.exportsFields
Support set exportsFields
in package.json that are used for resolving module requests
module.exports = {
//...
resolve: {
exportsFields: ['source', '...'],
},
};
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 https://github.com/web-infra-dev/rspack/pull/3228
Exciting New Features 🎉
- feat(core): support webpack-manifest-plugin by @hardfist in https://github.com/web-infra-dev/rspack/pull/3163
- feat(library): support system.js by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/3124
- feat(resolve): support custom exports fields by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/3186
- feat: add output.hotUpdateMainFilename & output.hotUpdateChunkFilename by @underfin in https://github.com/web-infra-dev/rspack/pull/3188
- feat: data uri support by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3220
- feat(types): support string or object in copy.patterns array by @9aoy in https://github.com/web-infra-dev/rspack/pull/3218
- feat: add scheme, mimetype, and resourceFragment rule condition by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3238
- feat: normal module factory after resolve hooks by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3060
- feat: add support for
Rule.loader
andRule.options
by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3246 - feat(module_optional): support require.resolve and require.resolveWeak by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/3237
- feat: add afterCompile hook by @edusperoni in https://github.com/web-infra-dev/rspack/pull/3235
Bug Fixes 🐞
- fix(license-plugin): add support for license-plugin in case of perChunkOutput as false by @dgmachado in https://github.com/web-infra-dev/rspack/pull/3172
- fix: 🐛 don't crash when export * of external module by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3167
- fix(magic_comment): support '()' by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/3179
- fix: add experiments.css schema by @9aoy in https://github.com/web-infra-dev/rspack/pull/3183
- fix(plugin-node-polyfill): remove console polyfill by @KyrieLii in https://github.com/web-infra-dev/rspack/pull/3191
- fix: wasm loading runtime on node-18 by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3197
- fix: render exports for esm output at hmr by @underfin in https://github.com/web-infra-dev/rspack/pull/3194
- fix: export-all-from-side-effects-free-commonjs by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3181
- fix: fix provide can't be override by user by @zhangliu in https://github.com/web-infra-dev/rspack/pull/3201
- fix: provided dependency generated code not stable by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3204
- fix: ci clippy by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3208
- fix: context module elimated by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3151
- fix: 🐛 amd external-array by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3226
- fix(dev-client): remove some unused dependencies by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/3244
- fix:
source
could be unavailable if asset was deleted by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3250 - fix(core): upgrade regress to 0.6.0 to fix regress compile regex error by @hardfist in https://github.com/web-infra-dev/rspack/pull/3251
Other Changes
- chore: 🤖 fix cargo test crash by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3178
- refactor: compilation getPath by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3143
- chore: console error info when ./x failed by @hardfist in https://github.com/web-infra-dev/rspack/pull/3175
- chore: fix arco-pro example crashing in debug mode by @Boshen in https://github.com/web-infra-dev/rspack/pull/3192
- chore: fix arco-pro crash again by @hardfist in https://github.com/web-infra-dev/rspack/pull/3195
- chore: fix fix-issue-3873 crash by @hardfist in https://github.com/web-infra-dev/rspack/pull/3196
- chore: fix node16 tests by @hardfist in https://github.com/web-infra-dev/rspack/pull/3200
- ci: add test Node.js v18 by @Boshen in https://github.com/web-infra-dev/rspack/pull/3168
- chore: fix jest crash on node by @hardfist in https://github.com/web-infra-dev/rspack/pull/3206
- ci: create issue in rspack-website when a pr is merged with "need documentation" label by @Boshen in https://github.com/web-infra-dev/rspack/pull/3211
- chore: add repro link to the bug issue template by @Boshen in https://github.com/web-infra-dev/rspack/pull/3225
- chore: add
x ready
command for running everything by @Boshen in https://github.com/web-infra-dev/rspack/pull/3230 - ci: remove unnecessary
test
option from reusable-build by @Boshen in https://github.com/web-infra-dev/rspack/pull/3245 - ci: automatically create Tuesday's release PR by @Boshen in https://github.com/web-infra-dev/rspack/pull/3248
- chore: add debug shell by @hardfist in https://github.com/web-infra-dev/rspack/pull/3261
- chore: fix debug shell by @hardfist in https://github.com/web-infra-dev/rspack/pull/3264
- ci: remove nightly step from full release by @Boshen in https://github.com/web-infra-dev/rspack/pull/3265
- chore: progressively migrate webpack test case by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3256
New Contributors
- @zhangliu made their first contribution in https://github.com/web-infra-dev/rspack/pull/3201
- @edusperoni made their first contribution in https://github.com/web-infra-dev/rspack/pull/3235
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.11...v0.1.12