-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Import Analysis - warns on imports that use a template literal but have no variables #14101
Closed
7 tasks done
Labels
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Comments
Start a new pull request in StackBlitz Codeflow. |
coreylight
added a commit
to coreylight/vite
that referenced
this issue
Aug 14, 2023
9 tasks
coreylight
added a commit
to coreylight/vite
that referenced
this issue
Aug 14, 2023
benmccann
added
bug
p2-edge-case
Bug, but has workaround or limited in scope (priority)
and removed
pending triage
labels
Sep 22, 2023
9 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When dynamically importing with something like:
The import analysis warns even when it probably should not, as the import follows the Rollup rules.
Reproduction
https://stackblitz.com/edit/vitejs-vite-3l8b8y?file=main.js
Steps to reproduce
When booting the app on stackblitz, you'll notice the "The above dynamic import cannot be analyzed by Vite." message
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: