Skip to content

SSR production build: Can I use ES6 modules? #2074

Answered by yyx990803
stefandesu asked this question in Q&A
Discussion options

You must be logged in to vote

For now the SSR build is always cjs for compatibility. You can use createRequire to load it in ESM mode.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stefandesu
Comment options

Answer selected by stefandesu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants