npm @rspack/cli 0.1.11
v0.1.11

latest releases: 1.0.7, 1.0.6, 0.7.6-canary-fd6c40d-20240918093542...
16 months ago

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.

see more

Support optimization.removeEmptyChunks

Tells Rspack to detect and remove chunks which are empty. Setting optimization.removeEmptyChunks to false will disable this optimization.

see more

Support splitChunks.{cacheGroup}.enforce

see more

What's Changed

Performance Improvements ⚡

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 🐞

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 for Box<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 to 5.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

Full Changelog: v0.1.10...v0.1.11

Don't miss a new cli release

NewReleases is sending notifications on new releases.