Skip to content

Commit

Permalink
DAO-705 Improved loading times in dev env. This is caused by react-ic…
Browse files Browse the repository at this point in the history
…ons. It's importing all icons. Check vercel/next.js#45529
  • Loading branch information
Freshenext committed Oct 2, 2024
1 parent 8f04d77 commit a49e855
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 0 deletions.
5 changes: 5 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'standalone',
modularizeImports: {
'react-icons': {
transform: 'react-icons/{{member}}',
},
},
}

export default nextConfig
56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"babel-plugin-transform-imports": "^2.0.0",
"cypress": "^13.11.0",
"encoding": "^0.1.13",
"eslint": "^8",
Expand Down

0 comments on commit a49e855

Please sign in to comment.