Skip to content

Commit

Permalink
chore: fix Next example configuration file (#387)
Browse files Browse the repository at this point in the history
We need to use `.default` when registering webpack plugin
  • Loading branch information
userquin authored Oct 30, 2024
1 parent ae8926e commit a704572
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/next/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
reactStrictMode: true,
webpack(config) {
config.plugins.push(
require('unplugin-icons/webpack')({
require('unplugin-icons/webpack').default({
compiler: 'jsx',
jsx: 'react',
}),
Expand Down

0 comments on commit a704572

Please sign in to comment.