Skip to content

Commit

Permalink
feat: support webpack5Config.experiments.incremental.providedExports
Browse files Browse the repository at this point in the history
  • Loading branch information
SyMind committed Feb 12, 2025
1 parent 00ea63f commit 6d1f9d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,12 @@ export default async function getBaseWebpackConfig(
: undefined,
}

if (isRspack) {
(webpack5Config.experiments as any).incremental = {
providedExports: true
};
}

webpack5Config.module!.parser = {
javascript: {
url: 'relative',
Expand Down

0 comments on commit 6d1f9d5

Please sign in to comment.