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: dep with dynamic import wrong error log #7313

Merged
merged 1 commit into from Mar 14, 2022

Conversation

patak-dev
Copy link
Member

@patak-dev patak-dev commented Mar 14, 2022

Description

Added a test case to showcase the issue. The comment in the code explains why this isn't an error. These dynamic imports are of the form OriginalFileName-{hash}.js.

I think later we could save in the metadata the names of all non-entry outputs, chunks, and dynamic imports, so we can do these checks against the real file names.

Reproduction with 2.9-beta.1 here: https://stackblitz.com/edit/vitejs-vite-kvca58


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@patak-dev patak-dev requested a review from bluwy March 14, 2022 11:09
@patak-dev
Copy link
Member Author

Merging so we can release a quick patch now that we asked people to try it out.

@patak-dev patak-dev merged commit 769f535 into main Mar 14, 2022
@patak-dev patak-dev deleted the fix/dep-with-dynamic-import-error-log branch March 14, 2022 11:38
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

2 participants