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)
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: