DEV Community

Discussion on: Web Components for the Web Monetization API

Collapse
 
philnash profile image
Phil Nash

OK, version 0.2.0 now publishes four consumable versions of the component:

  • A Babel transpiled, UMD version for use in browsers that don't support ES modules/latest syntax
  • The above, but minified, to be used in CDNs like unpkg
  • A CommonJS module
  • An ES module (can be used in browsers that support ES modules)

Neither the CJS or ESM version go through Babel, so you can choose to transpile as part of your own build process.

Does that work better?