-
Notifications
You must be signed in to change notification settings - Fork 645
Open
Labels
Description
We use ESM modules directly in browser with importmaps. But for the the imports have to be correct.
Your imports are missing the .js extension, this is like this not valid ESM code (at least for the browser)
Expected Behavior
all imports in the build should have a .js extension
Current Behavior
no .js extension
Possible Solution
add the .js extension already in the source or at the build, for example via babel: babel-plugin-add-import-extension
Steps To Reproduce
- Try to import index.js directly from a browser