Skip to content

Commit

Permalink
Fix webpack DefinePlugin import to use default export
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Dec 13, 2024
1 parent 980282f commit 902dc18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/frameworks/nextjs/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ const setupRuntimeConfig = async (

// Load DefinePlugin with a dynamic import to ensure that Next.js can first
// replace webpack with its own internal instance, and we get that here.
baseConfig.plugins?.push(new (await import('webpack')).DefinePlugin(definePluginConfig));
baseConfig.plugins?.push(new (await import('webpack')).default.DefinePlugin(definePluginConfig));
};

0 comments on commit 902dc18

Please sign in to comment.