html5-qrcode
html5-qrcode copied to clipboard
ESM build should be outputting full import paths including .js extensions, for ESM output to work properly
Describe the bug
Imports do not have .js extension, so you can simply import this module like you should be able to.
To Reproduce
Import from a CDN, eg:
import { Html5QrcodeScanner } from 'https://cdn.jsdelivr.net/npm/[email protected]/esm/html5-qrcode-scanner.js'
You'll get 404's for every import.
Expected behavior
It should work.
Screenshots