-
Notifications
You must be signed in to change notification settings - Fork 93
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
enableBuild causes no files to be outputted #60
Comments
could you provide a minimal re-produce repo or show the Vite configuration? Maybe some checker failed silently? 🤔 |
This is our vite config (with enableBuild set to false, when we set it to true or remove it the build stops working):
|
Did some further testing and if I do e.g.
(as in, nothing enabled) |
Actually I'm guessing that what's happening is that as soon as |
Found the issue, it's here: That code could be more readable if you made the const exitCodes = await Promise.all(checkers.map((checker) => spawnChecker(checker, userConfig, localEnv)))
const exitCode = exitCodes.find((code) => code !== 0) || 0;
process.exit(exitCode) Now it's pretty clear that if (exitCode !== 0) process.exit(exitCode); |
If we have
enableBuild
set to true (the default), no files get outputted when building the app. Dev mode still works fine, but doingvite build
results in this being the last message in terminal:As in, it seems to skip rendering the chunks? Setting
enableBuild
to false makes the build work again.The text was updated successfully, but these errors were encountered: