EasyQRCodeJS
EasyQRCodeJS copied to clipboard
Proper ESM Import
It would be great to have a proper ESM export for this package. Currently, for modern project using ESM, the exported way force to :
- Add in typescript
"allowSyntheticDefaultImports": true
- Do some weird stuff JS side like
let QRCode // top module variable
// When importing
const easyqrcodejs = await import('easyqrcodejs');
QRCode = easyqrcodejs.default;
- optimizeDeps in vite for the package to actually works.