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

fix(BREAKING CHANGE): lookup now returns nil if auto-build fails #268

Merged
merged 2 commits into from
Oct 4, 2022

Conversation

ElMassimo
Copy link
Owner

Description 📖

This pull request changes the behavior of Manifest#lookup when autoBuild is enabled.

It will now return nil if the last build has failed.

Closes #267.

Background 📜

Previously, lookup would continue using the last generated manifest when available.

Although this allows a developer to continue working in the app after breaking the build, in practice most users will either:

  • Prefer the app to break if the build fails, as logs for failing builds can be missed easily
  • Have the Vite dev server running when making changes, in which case autoBuild is not used

Previously, it would have attempted to find the specified asset in an
existing manifest.
@ElMassimo ElMassimo added the enhancement New feature or request label Oct 4, 2022
@ElMassimo ElMassimo changed the title feat(BREAKING CHANGE): lookup now returns nil if auto-build fails fix(BREAKING CHANGE): lookup now returns nil if auto-build fails Oct 4, 2022
@ElMassimo ElMassimo merged commit cf2dec1 into main Oct 4, 2022
@ElMassimo ElMassimo deleted the strict-lookup branch October 4, 2022 17:19
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

Successfully merging this pull request may close these issues.

autoBuild with failed build, app will use previous successful build
1 participant