Open delixfe opened 3 years ago
This is a tricky subject. We required some workarounds to package it even as a UMD module, which is partially rooted in upstream bugs. See: https://github.com/ehn-dcc-development/hcert-kotlin/blob/ebb66449a3bd215d70cd5f5dcbd5766dcf952121/webpack.config.d/patch.js#L33
We'd very much appreciate help on this. The "ground truth" for the webpack'd UMD distribution is actually a valid node module. So if you successfully manage to add build/packages/js/hcert
as a dependency to your node project, let us know how you pulled it off, and we'll see what we can do.
However, we targeted the browser and node was never a requirement, so we directly depend on quite some browserified libraries, which will almost certainly cause issues. "Fixing" this would require changes to the build process. There's probably a way to accomplish this, but this is a non-priority for us, so we are very hesitant to invest in this.
You can, of course, directly integrate the UMD module we currently provide with your node app (with all obvious drawbacks of this approach).
@JesusMcCloud Thanks for your explanation. We use JavaScript mainly for our API tests and hoped for a simple solution :). We do not have resources to follow up right now, but I leave the issue open. Maybe someone else steps in.
Could you publish the JS library on npmjs.com or as GH package? This would help a lot :).
CC: @mofobo-bit