xmldsigjs
xmldsigjs copied to clipboard
Uncaught ReferenceError: regeneratorRuntime is not defined - non-functional in browser
When running in a browser, XmlDSigJs cannot be loaded as it throws:
xmldsig.js:16316 Uncaught ReferenceError: regeneratorRuntime is not defined
at xmldsig.js:16316
at xmldsig.js:16436
at xmldsig.js:16465
at xmldsig.js:22824
This can be minimally reproduced by this fiddle: https://jsfiddle.net/ucrkbtdv/
Bisection indicates this occurred between 2.0.27 and 2.0.28
Looks like you need Babel polyfill
@AlexVallat Just do npm install regenerator-runtime
and import 'regenerator-runtime'
in your project and it will work.