Explicit URL imports import the module when used with javascript files #16648
Labels
inconsistency
Inconsistency between dev & build
p2-edge-case
Bug, but has workaround or limited in scope (priority)
Describe the bug
When trying to import the URL of a javascript file with the explicit URL import as described in the documentation the javascript module is imported rather than just the URL of the module.
This only happens when running the code with
npm run dev
the bundle built withnpm run build
works as expected.Reproduction
https://stackblitz.com/edit/vitejs-vite-ubhupq?file=main.js
Steps to reproduce
npm install
npm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: