wallix / webauthn

node.js webauthn framework
Apache License 2.0
105 stars 23 forks source link

Build to UMD module and transpile down to ES5 #10

Closed afrith closed 5 years ago

afrith commented 5 years ago

This PR adds Webpack configuration to the client library build process that does two things.

afrith commented 5 years ago

Makes sense, I've updated it so that the existing ESM build remains at dist/main.js and the UMD is built at dist/main.umd.js. I'm not sure if there's anything in package.json that would also need to be changed for this?

djhi commented 5 years ago

I'm not sure if there's anything in package.json that would also need to be changed for this?

There is.

The esm build should be referenced under a module key instead of main. The umd module should the one in main