v0.1.11
版本发布时间: 2023-05-16 17:05:14
web-infra-dev/rspack最新发布版本:v0.3.13(2023-11-15 21:30:09)
Core features
Externals
supports Array
module.exports = {
//...
externals: {
subtract: ['./math', 'subtract'],
},
};
subtract: ['./math', 'subtract']
allows you select part of a module, where ./math is the module and your bundle only requires the subset under the subtract variable.
Support optimization.removeEmptyChunks
Tells Rspack to detect and remove chunks which are empty. Setting optimization.removeEmptyChunks to false will disable this optimization.
Support splitChunks.{cacheGroup}.enforce
What's Changed
Performance Improvements ⚡
- perf: 🤖 optimize regex by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3113
Exciting New Features 🎉
- feat(rust): support webpack_chunk_load module variable by @lippzhang in https://github.com/web-infra-dev/rspack/pull/3080
- feat: support
optimization.removeEmptyChunks
config by @chenjiahan in https://github.com/web-infra-dev/rspack/pull/3076 - feat(core): support custom dependency type internally by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3068
- feat(chunkId): care about
Chunk#id_name_hints
and generate more stable chunk id by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3043 - feat(minify-plugin): support minify-css for minify-plugin by @hardfist in https://github.com/web-infra-dev/rspack/pull/3093
- feat(new_split_chunks): support
splitChunks.{cacheGroup}.enforce
by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3086 - feat(realContentHash): multi contenthash in filename by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3095
- feat: add compatible compilation.chunks by @dgmachado in https://github.com/web-infra-dev/rspack/pull/3010
- feat: add build meta exports type by @underfin in https://github.com/web-infra-dev/rspack/pull/3121
- feat: add tree shaking 'module' to eliminate module which has no export used and sideEffects free. by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3034
- feat(core): external supports array by @hardfist in https://github.com/web-infra-dev/rspack/pull/3141
- feat(plugin-node-polyfill): add process & buffer to node-polyfill by @hardfist in https://github.com/web-infra-dev/rspack/pull/3154
Bug Fixes 🐞
- fix(rspack_plugin_javascript): remove empty whitespace from runtime by @Boshen in https://github.com/web-infra-dev/rspack/pull/3083
- fix: add correct chunk group runtime for multiply entry single runtime by @underfin in https://github.com/web-infra-dev/rspack/pull/3094
- fix: rebuild loses error messages by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/3101
- fix(emotion): should use source code for computing hash by @hyf0 in https://github.com/web-infra-dev/rspack/pull/3100
- fix: replace wrong with unicode by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3102
- fix: fix esbuild iife for minify plugin by @hardfist in https://github.com/web-infra-dev/rspack/pull/3107
- fix(context module): should escape context module regex by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/3037
- fix: 🐛 tree shaking nuxt error by @IWANABETHATGUY in https://github.com/web-infra-dev/rspack/pull/3125
- fix(create-rspack): fix compatible problem with node@14 by @hardfist in https://github.com/web-infra-dev/rspack/pull/3159
- fix: call devServer.invalidate() panic by @jerrykingxyz in https://github.com/web-infra-dev/rspack/pull/3105
Other Changes
- refactor(hmr): change visit_node_children from macro to fn by @bvanjoi in https://github.com/web-infra-dev/rspack/pull/3075
- chore: add svg-react-loader & node-loader example by @hardfist in https://github.com/web-infra-dev/rspack/pull/3030
- chore: single workspace by @Boshen in https://github.com/web-infra-dev/rspack/pull/3035
- chore(rspack): add github-actions-reporter to jest by @Boshen in https://github.com/web-infra-dev/rspack/pull/3081
- chore: add test commands to x.mjs by @Boshen in https://github.com/web-infra-dev/rspack/pull/3082
- chore: disable perfsee upload in ci environment by @hardfist in https://github.com/web-infra-dev/rspack/pull/3099
- chore(rust): clean up dependencies via
cargo-machete
by @Boshen in https://github.com/web-infra-dev/rspack/pull/3106 - chore: remove unused workspace dev dependencies by @Boshen in https://github.com/web-infra-dev/rspack/pull/3098
- chore: add rust rebuild test function feature by @suxin2017 in https://github.com/web-infra-dev/rspack/pull/3091
- chore: fix toml indentation by @Boshen in https://github.com/web-infra-dev/rspack/pull/3114
- refactor: Remove impl
Module
forBox<dyn Module>
in codebase by @sladyn98 in https://github.com/web-infra-dev/rspack/pull/2831 - chore: placeholder options for stats nestedModules by @ahabhgk in https://github.com/web-infra-dev/rspack/pull/3115
- ci: run x86_64-unknown-linux-gnu tests without docker by @Boshen in https://github.com/web-infra-dev/rspack/pull/3117
- ci: run e2e tests in ubuntu-latest by @Boshen in https://github.com/web-infra-dev/rspack/pull/3122
- chore(examples): remove unused eslint-loader from examples/eslint by @Boshen in https://github.com/web-infra-dev/rspack/pull/3123
- chore: enable emitCss for svelte by @hardfist in https://github.com/web-infra-dev/rspack/pull/3136
- chore(examples/plugin-compat): disable verbose log && add inline css by @hardfist in https://github.com/web-infra-dev/rspack/pull/3138
- chore: clean up Cargo.toml for node_binding and rspack_binding_options by @Boshen in https://github.com/web-infra-dev/rspack/pull/3139
- chore: upgrade ts-jest to 29.1.0 by @hardfist in https://github.com/web-infra-dev/rspack/pull/3146
- chore: support debug rust in jest by @hardfist in https://github.com/web-infra-dev/rspack/pull/3149
- chore(rspack-cli): run jest with --runInBand by @Boshen in https://github.com/web-infra-dev/rspack/pull/3140
- chore: Upgraded
webpack
to5.76.0
by @GarrisonD in https://github.com/web-infra-dev/rspack/pull/3156 - refactor(rust): remove dead code by @Boshen in https://github.com/web-infra-dev/rspack/pull/3160
- chore: fix version manually by @h-a-n-a in https://github.com/web-infra-dev/rspack/pull/3165
New Contributors
- @sladyn98 made their first contribution in https://github.com/web-infra-dev/rspack/pull/2831
- @GarrisonD made their first contribution in https://github.com/web-infra-dev/rspack/pull/3156
Full Changelog: https://github.com/web-infra-dev/rspack/compare/v0.1.10...v0.1.11