@atlas-kitchen/adyen-web
Version:
17 lines (12 loc) • 600 B
JavaScript
/**
* ATTENTION: Do not import anything that is not available inside the /dist folder .
* 'auto' uses the files that are packed when running 'npm pack'. Make sure that when adding another import, the file
* is available when generating the tarball that will be published on npm
*/
const library = require('../dist/cjs/index.cjs');
const { AdyenCheckout, components } = library;
const { Dropin, ...Components } = components;
const Classes = Object.keys(Components).map(key => Components[key]);
AdyenCheckout.register(...Classes);
AdyenCheckout.setBundleType('auto');
module.exports = library;