Skip to content

Commit

Permalink
fix: try optimizeImports
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 15, 2024
1 parent 7b85870 commit fed2741
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ const nextConfig = {
],
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
modularizeImports: {
"@phosphor-icons/react": {
transform: "@phosphor-icons/react/dist/icons/{{member}}",
},
},
experimental: {
scrollRestoration: true,
optimizePackageImports: [
"@phosphor-icons/react",
"@phosphor-icons/react/dist/ssr",
"@fuels/react",
"fuels",
],
Expand Down

0 comments on commit fed2741

Please sign in to comment.