Modularized import to accelerate dev experience #581
Unanswered
laurent512
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
It seems that adding some components increases by a huge amount the compiled modules during development.
I am working with Nextjs13 App router
That slows down the compilation process during development massively . (+~2500 extra modules in my project because of that)
Is there a way to rewrite that to avoid this situation?
I already added the following in next.config.js which improved a lot but not enough :
module.exports = withNextIntl({
// Other Next.js configuration ...
experimental: {
serverActions: true,
},
modularizeImports: {
'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member}}'
}
}
});
Thank you so much in advance
Beta Was this translation helpful? Give feedback.
All reactions