zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
213 stars 43 forks source link

Add '.js' to all imports so this works without special processing #123

Open treeder opened 11 months ago

treeder commented 11 months ago

Loading the ESM build from a CDN results in a ton of 404 errors (one for every import) since this lib isn't using full paths with .js extension.

Eg: https://cdn.jsdelivr.net/npm/@zxing/browser@0.1.4/esm/index.js

Results in:

image