Skip to content
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 ssr.external settings for "vike" and "vike/server" ? #1163

Closed
thomasjm opened this issue Oct 6, 2023 · 1 comment
Closed

Remove ssr.external settings for "vike" and "vike/server" ? #1163

thomasjm opened this issue Oct 6, 2023 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@thomasjm
Copy link

thomasjm commented Oct 6, 2023

Description

The comment in the relevant code indicates it could be removed once Vike is published in ESM, which seems to be the case now.

This setting is currently standing in the way of me creating a standalone server build by non-externalizing everything that's needed in my server/index.ts file. I had to write a mini Vite plugin to remove the setting as a workaround.

// Needed as long as Vike is published as CJS.
// TODO: can we remove this once Vike is published as ESM?
external: ['vike', 'vike/server']

This comment gives more context on what I'm trying to do: cyco130/vavite#24 (comment)

@thomasjm thomasjm added the enhancement ✨ New feature or request label Oct 6, 2023
@brillout
Copy link
Member

brillout commented Oct 6, 2023

Done; thanks for reaching out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants