standalone output, lib not inside node_modules
Unanswered
Himalayan posted this in #help-forum
HimalayanOP
I am using nx/next to setup a next.js app in my NX monorepo. In the config I have
output
set tot standalone
and have NO outputFileTracingRoot
configured. In my setup I am using https://mantine.dev/, a component library. When I run a build and check the content of apps/my-next-app/.next/standalone/node_modules
I don't see the mantine dependency but when I run the app everything seems to work. I have no idea how this works, can anyone explain this to me? I think the dependency is now living as a file under static/chunks
3 Replies
HimalayanOP
I also just tried it using turbo: https://turbo.build/repo/docs/guides/tools/docker, same result no mantine dependency under
node_modules
🤔yes it optimises and bundles your deps to be more effeciant in standalone mdoe
HimalayanOP
Cool, thanks!