Unused dependencies in standalone build using storybook #65444
Labels
bug
Issue was opened via the bug report template.
Module Resolution
Module resolution (CJS / ESM, module resolving)
Output (export/standalone)
Related to the the output option in `next.config.js`.
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/competent-shirley-zg6rwr
To Reproduce
pnpm build
Current vs. Expected behavior
Right now you can find some storybook "related" dependencies like "esbuild" which are leading to vulnerabilities and unused (because they are devDeps) in production code.
Expect to not find them
Provide environment information
Which area(s) are affected? (Select all that apply)
Module Resolution, Output (export/standalone)
Which stage(s) are affected? (Select all that apply)
next build (local), Other (Deployed)
Additional context
I tested in both v,14,2,3 and 14,1,4
The text was updated successfully, but these errors were encountered: