-
-
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
[breaking] do a single bundling with Vite removing esbuild #2580
Conversation
🦋 Changeset detectedLatest commit: d6fc153 The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a60f3a0
to
feec1c8
Compare
fff6889
to
55f8652
Compare
55f8652
to
ae5c4b1
Compare
d77931b
to
19414ce
Compare
f49099c
to
45f7553
Compare
68c21fe
to
1126f9b
Compare
1126f9b
to
c21ff65
Compare
aa76b99
to
b579887
Compare
176b51a
to
373cc10
Compare
373cc10
to
91790ff
Compare
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/svelte/kit/GJZnawTadPuc2Sy8bhuvjzCnEVqP |
91790ff
to
65012e0
Compare
65012e0
to
e56edfb
Compare
e56edfb
to
06b020e
Compare
Just to confirm that I have tested my own app against the netlify adapter here to determine if this fixes the very strange missing transient dependency missing issues that occur when trying to
and can confirm that this PR resolves it. |
It should also be possible to remove the Granted, this would be a breaking change for |
closing in favour of #2931 |
Motivation
The second bundling step is a pain. It leads to a whole class of new bugs where users are now exposed to both all Vite bugs and all esbuild bugs (or sometimes not bugs, but purposely omitted features such as lack of TypeScript reflection). It also makes it substantially more difficult to understand difficult edge cases because you need to learn two build systems.
Description
Removes
esbuild
from theadapter-node
andnetlify
adapters. Rich suggested that Vercel and Cloudflare require everything to be in a single file, so I've left theesbuild
step for those adaptersRelated issues
Breaking changes
Adapter authors
$server-build
alias instead of hard-coded relative pathserverEntryPoint
@sveltejs/kit/install-fetch
directly instead of more complicated shimAdapter users
adapter-node
. Users can create a custom entry point if they'd like to create environment variables with their own naming schemeadapter-node
'sentryPoint
option should switch to the newserverEntryPoint
optionOpen questions
$server-build
for the alias name?$server-build
doesn't seem to be pulling in types at the moment. I'll leave this for another PR since it's not a regression, but it would be nice to think about