Skip to content

Commit

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

0 comments on commit 973d254

Please sign in to comment.