v0.1.11
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 #3113
Exciting New Features π
- feat(rust): support webpack_chunk_load module variable by @lippzhang in #3080
- feat: support
optimization.removeEmptyChunks
config by @chenjiahan in #3076 - feat(core): support custom dependency type internally by @hyf0 in #3068
- feat(chunkId): care about
Chunk#id_name_hints
and generate more stable chunk id by @hyf0 in #3043 - feat(minify-plugin): support minify-css for minify-plugin by @hardfist in #3093
- feat(new_split_chunks): support
splitChunks.{cacheGroup}.enforce
by @hyf0 in #3086 - feat(realContentHash): multi contenthash in filename by @ahabhgk in #3095
- feat: add compatible compilation.chunks by @dgmachado in #3010
- feat: add build meta exports type by @underfin in #3121
- feat: add tree shaking 'module' to eliminate module which has no export used and sideEffects free. by @IWANABETHATGUY in #3034
- feat(core): external supports array by @hardfist in #3141
- feat(plugin-node-polyfill): add process & buffer to node-polyfill by @hardfist in #3154
Bug Fixes π
- fix(rspack_plugin_javascript): remove empty whitespace from runtime by @Boshen in #3083
- fix: add correct chunk group runtime for multiply entry single runtime by @underfin in #3094
- fix: rebuild loses error messages by @jerrykingxyz in #3101
- fix(emotion): should use source code for computing hash by @hyf0 in #3100
- fix: replace wrong with unicode by @ahabhgk in #3102
- fix: fix esbuild iife for minify plugin by @hardfist in #3107
- fix(context module): should escape context module regex by @suxin2017 in #3037
- fix: π tree shaking nuxt error by @IWANABETHATGUY in #3125
- fix(create-rspack): fix compatible problem with node@14 by @hardfist in #3159
- fix: call devServer.invalidate() panic by @jerrykingxyz in #3105
Other Changes
- refactor(hmr): change visit_node_children from macro to fn by @bvanjoi in #3075
- chore: add svg-react-loader & node-loader example by @hardfist in #3030
- chore: single workspace by @Boshen in #3035
- chore(rspack): add github-actions-reporter to jest by @Boshen in #3081
- chore: add test commands to x.mjs by @Boshen in #3082
- chore: disable perfsee upload in ci environment by @hardfist in #3099
- chore(rust): clean up dependencies via
cargo-machete
by @Boshen in #3106 - chore: remove unused workspace dev dependencies by @Boshen in #3098
- chore: add rust rebuild test function feature by @suxin2017 in #3091
- chore: fix toml indentation by @Boshen in #3114
- refactor: Remove impl
Module
forBox<dyn Module>
in codebase by @sladyn98 in #2831 - chore: placeholder options for stats nestedModules by @ahabhgk in #3115
- ci: run x86_64-unknown-linux-gnu tests without docker by @Boshen in #3117
- ci: run e2e tests in ubuntu-latest by @Boshen in #3122
- chore(examples): remove unused eslint-loader from examples/eslint by @Boshen in #3123
- chore: enable emitCss for svelte by @hardfist in #3136
- chore(examples/plugin-compat): disable verbose log && add inline css by @hardfist in #3138
- chore: clean up Cargo.toml for node_binding and rspack_binding_options by @Boshen in #3139
- chore: upgrade ts-jest to 29.1.0 by @hardfist in #3146
- chore: support debug rust in jest by @hardfist in #3149
- chore(rspack-cli): run jest with --runInBand by @Boshen in #3140
- chore: Upgraded
webpack
to5.76.0
by @GarrisonD in #3156 - refactor(rust): remove dead code by @Boshen in #3160
- chore: fix version manually by @h-a-n-a in #3165
New Contributors
- @sladyn98 made their first contribution in #2831
- @GarrisonD made their first contribution in #3156
Full Changelog: v0.1.10...v0.1.11