-
Under This is a necessary step to getting started, without that I'm pretty stuck when it comes to building apps due to mysterious errors with long standing history of issues without clear resolutions and, I have found no document that covers all the loose ends like optimizeDeps exclude and other errors like Is there any way to start off using SSR just to improve rendering and the data-flow and without worrying about bundling yet? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
There is an In terms of transpiling, if there is JSX or TypeScript there is going to be transpilation. Some adapters (non-node) also need bundling. Vite tries to be smart but it doesn't always work. |
Beta Was this translation helpful? Give feedback.
-
I have been at this an hour and I'm still not sure if this is vite or solid start. I can't recreate it in Vite. I'll try again tomorrow. Here is what I see though: After adding my locally linked package "ddl" to ssr.external, vite stopped trying to "handle" the code (now it does not error and runs great under The comments below are an attempt to re-add the package to file watch using a negated glob pattern "!...". ssr: {
external: [
'ddl',
]
},
server: {
watch: {
// ignored: ['!**/../ddl/**'] // https://vitejs.dev/config/server-options.html#server-watch
}
},
optimizeDeps: {
// exclude: ['ddl'] // https://vitejs.dev/config/server-options.html#server-watch
}, |
Beta Was this translation helpful? Give feedback.
There is an
ssr.external
option in Vite that might help. Vite tends have their own automatic handler that isn't always desired. https://vitejs.dev/config/ssr-options.html.In terms of transpiling, if there is JSX or TypeScript there is going to be transpilation. Some adapters (non-node) also need bundling. Vite tries to be smart but it doesn't always work.