vike build fails, if prerender mechanism uses node module that is uncompiled typescript #2773
Unanswered
Inviz
asked this question in
Help & Questions
Replies: 1 comment
-
|
Have you seen https://vite.dev/config/ssr-options.html#ssr-noexternal ? |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I publish my packages unconventionally: typescript files, no compilation. It works fine when i'm using those packages in the app code. However when in run
vike build, it throws this:Is there a way to force vike build to do the transpilation via vite as usual? Either way, type stripping can't work for me as I use namespaces in my TS projects.
I tried adding package to optimizeDeps.include - no dice. Or is vike limited to only run its onBeforePrerenderStart hook to type stripping?
Beta Was this translation helpful? Give feedback.
All reactions