Replies: 1 comment
-
I'm not sure about your requirement, but Vite ssr build might fit your use case better https://vite.dev/config/build-options.html#build-ssr Maybe something like: export default defineConfig({
build: {
ssr: './src/backend/server.ts'
},
ssr: {
// probably default works
// external: ...
// noExternal: ...
},
// not sure dts would work though
plugins: [dts()] // emit TS declaration files
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried different configurations to compile my backend project with node and ts
// vite.config.backend.ts
Runing: "build:backend": "vite --config vite.config.backend.ts build", _
but i gotbuilding for production...
[plugin:vite:resolve] [plugin vite:resolve] Module "fs" .........
[plugin:vite:resolve] [plugin vite:resolve] Module "path .....
error during build:
[vite]: Rollup failed to resolve import "fsevents"
.........._
A long list of similar errors
Beta Was this translation helpful? Give feedback.
All reactions