html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

ESM build should be outputting full import paths including .js extensions, for ESM output to work properly

Open treeder opened this issue 2 years ago • 0 comments

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

image

treeder avatar Sep 20 '23 16:09 treeder