[Vite + SSR] Is it possible to build to ES instead of CJS? #14733
Unanswered
gustavotoyota
asked this question in
CLI - SSR mode
Replies: 1 comment 1 reply
-
|
The index.js file seems to be build with esbuild: Not sure if you can change the configuration. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use some newer functionality like top-level await on the server.
I managed to build the server to ES doing this:
But the file
dist/ssr/index.jsis still being built as CJS, so I'm unable to start the server.Is it possible to build everything into ES code?
Beta Was this translation helpful? Give feedback.
All reactions