-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Remove relative path references in adapters #2569
Comments
I don't think it's good idea to write this to src/node_modules (it caused problems in Sapper). I agree we need to solve those relative paths, but there should be maybe better way? |
What problems did it cause in Sapper? |
for example... there is at least 10 similiar issues on Sapper Github. One even more critical, about bundlers, as it's problematic to process src/node_modules/, (I'm lazy for searching issues) Also I think Rich was talking about how he wanted to get rid of this, as beginners were often confused with this folder. It's even why in Kit tried new approach with |
That issue sounds like people didn't like using Still, we should probably put it directly in |
what about putting |
No longer an issue:
|
Describe the bug
The best idea I have so far is that instead of writing the server output to
.svelte-kit/output/server
, we could try writing it to something likenode_modules/@sveltejs/user-app
(or maybesrc/node_modules
like Sapper does) with apackage.json
file:The relative path is stopping adapter authors from using the types
I also think that after this is fixed that we can use Vite to do a single build pass instead of doing a second build step with
esbuild
in the adaptersReproduction
For example:
kit/packages/adapter-node/src/middlewares.js
Line 1 in ff35e8d
We should make sure @jthegedus can consume the types in the firebase adapter after this is fixed
Logs
No response
System Info
`master`
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: