-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adapter-vercel should respect esbuild configs #1732
Conversation
This patch attempts to solve sveltejs#1706 We pass through the esbuild configurations in svelte.config.cjs into the esbuild step of the vercel adapter. This is primarily to solve the case where we have external packages that are skipped by esbuild in adapater-node, but not adpater-vercel.
|
If we're going to make this change, I assume we should also make it in the other adapters that use |
There's a related PR that's attempting to pass esbuild options into |
@@ -31,7 +31,8 @@ export default function () { | |||
entryPoints: ['.svelte-kit/vercel/entry.js'], | |||
outfile: join(dirs.lambda, 'index.js'), | |||
bundle: true, | |||
platform: 'node' | |||
platform: 'node', | |||
...config?.kit?.vite()?.esbuild |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that reusing vite
's esbuild
config here is not the best way. People way want to configure the two separately. E.g. see #1692 (comment)
@Nick-Mazuk any news ? |
This patch attempts to solve #1706
We pass through the esbuild configurations in svelte.config.cjs into the
esbuild step of the vercel adapter.
This is primarily to solve the case where we have external packages that
are skipped by esbuild in adapater-node, but not adpater-vercel.
Before submitting the PR, please make sure you do the following
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpx changeset
and following the prompts