jsQR icon indicating copy to clipboard operation
jsQR copied to clipboard

Consider adding support for importing using ESM

Open TomasHubelbauer opened this issue 7 years ago • 0 comments

Hello, I am not entirely sure this is possible, but reading through this article it seems like it should be possible to import CJS modules from ESM.

I'd like to request that, if possible, support be added for jsQR to be import-able in ESM:

import jsQR from 'https://unpkg.com/jsqr/dist/jsQR.js';

I would have contributed a PR, but I have no idea how to achieve this. I am interested in your thoughts on the topic and whether you think this is achieveable.

TomasHubelbauer avatar Dec 26 '18 12:12 TomasHubelbauer