Open LoricAndre opened 1 month ago
If you think this causes a security issue, please read https://authjs.dev/security and reach out responsibly instead. I reached out to the Svelte team to clarify, for what it's worth, haven't gotten an answer yet.
Maybe worth re-asking in https://github.com/sveltejs/svelte
Environment
package.json
Reproduction URL
https://github.com/LoricAndre/next-auth-example
Describe the issue
After using
pnpm --filter <filter> --prod --no-optional deploy app
to create an app bundle, we found that esbuild is included in the packages that were pulled into the bundle.After tracing the dependencies, we found that
@auth/sveltekit
"pulls" vite as a peer dependency, which in turn pulls esbuild as a dependency.This seems like unwanted behavior, as vite and esbuild should not be needed after the package is built, and it flagged the package in a vulnerability scanner.
How to reproduce
Create a prod bundle of a package requiring
@auth/sveltekit
:Result :
Expected behavior
This should not include
vite
oresbuild