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: build optimize deps metada location #7214

Merged
merged 1 commit into from Mar 7, 2022

Conversation

patak-dev
Copy link
Member

Description

Fixes missing pre bundle metadata location when building after #6758

Fix marko/vite CI issue with 2.9 beta
See: https://github.com/vitejs/vite-ecosystem-ci/runs/5443497900?check_suite_focus=true

Additional context

It isn't directly related to the fix but the same error can be reproduced in the current test suite against vite 2.8.x (or any prev version) if you comment the dev step and we only test the build step.
If you don't run vite dev, the pre-bundling step isn't run, so the _metadata.json with the known imports isn't available and the build process then runs a fresh scan phase. For some reason, this scan phase seems to be given a different set of deps because I ended up with the same error then we are seeing in vite-ecosystem-ci. We need to investigate that afterward.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-dev patak-dev merged commit dc46adf into main Mar 7, 2022
@patak-dev patak-dev deleted the fix/build-optimize-deps-metadata-location branch March 7, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant