Skip to content

Commit

Permalink
Include only current chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Feb 25, 2024
1 parent 87329a2 commit 5946c0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/rspack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ module.exports = (webpackEnv, argv) => {
template: entry.template ? path.join(defaultAppPath, entry.template) : 'auto',
filename: entry.html || `${chunkName}.html`,
title: libName,
chunks: [chunkName],
// By default, exclude all other chunks
excludedChunks: entry.excludeChunks || Object.keys(entries).filter((entryKey) => entryKey !== chunkName),
meta: {
Expand Down

0 comments on commit 5946c0d

Please sign in to comment.