Skip to content

feat: introduce RemoveDuplicateModulesPlugin#8128

Merged
JSerFeng merged 1 commit intomainfrom
feat/split-shared-modules-plugin
Oct 28, 2024
Merged

feat: introduce RemoveDuplicateModulesPlugin#8128
JSerFeng merged 1 commit intomainfrom
feat/split-shared-modules-plugin

Conversation

@JSerFeng
Copy link
Copy Markdown
Contributor

@JSerFeng JSerFeng commented Oct 15, 2024

Summary

Introduce RemoveDuplicateModulesPlugin.

This plugin can help you remove duplicated modules without SplitChunksPlugin. Some projects may meet problem that rebuild costs too much time, and SplitChunksPlugin is one of the reasons. But without SplitChunksPlugin there are many duplicated modules, so this plugin comes out.

You can use this in development to speed up your rebuild time, and disable splitChunks.

const rspack = require('@rspack/core')
module.exports = {
  optimization: { splitChunks: false },
  plugins: [new rspack.experiments.RemoveDuplicateModulesPlugin()]
}

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack. labels Oct 15, 2024
@netlify
Copy link
Copy Markdown

netlify bot commented Oct 15, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit a3c128b
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/671f308fb1f4ac0008269091

@JSerFeng JSerFeng changed the title feat: introduce SplitSharedModulesPlugin feat: introduce RemoveDuplicatedModulesPlugin Oct 28, 2024
@JSerFeng JSerFeng changed the title feat: introduce RemoveDuplicatedModulesPlugin feat: introduce RemoveDuplicateModulesPlugin Oct 28, 2024
@JSerFeng JSerFeng force-pushed the feat/split-shared-modules-plugin branch from 9b6356c to 7314607 Compare October 28, 2024 03:56
@JSerFeng JSerFeng marked this pull request as ready for review October 28, 2024 03:57
@JSerFeng JSerFeng enabled auto-merge (squash) October 28, 2024 04:00
@JSerFeng JSerFeng requested a review from ahabhgk October 28, 2024 04:00
@ahabhgk
Copy link
Copy Markdown
Contributor

ahabhgk commented Oct 28, 2024

need rebase

@JSerFeng JSerFeng force-pushed the feat/split-shared-modules-plugin branch from 7314607 to 34e7aab Compare October 28, 2024 06:26
@JSerFeng JSerFeng force-pushed the feat/split-shared-modules-plugin branch from 34e7aab to a3c128b Compare October 28, 2024 06:34
@JSerFeng JSerFeng merged commit b98e7fb into main Oct 28, 2024
@JSerFeng JSerFeng deleted the feat/split-shared-modules-plugin branch October 28, 2024 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants