Open hzy opened 3 years ago
@papnkukn Would u PTAL :) ?
I think make sense to avoid Webpack errors
It makes more sense to avoid eval()
at any cost.
Can't we provide a build for browsers without the save function and one for node?
NPM provides the feature to automatically import the correct version using
"exports": {
"browser": {
"default": "./qrcode.browser.min.js",
},
"default": "./qrcode.min.js",
}
Use
eval('require')
instead ofrequire
to avoid bundler error.This allow this package continue work with Node.js and can avoid a bundler error.
This PR fixes papnkukn/qrcode-svg#11