UNPKG

react-klasha

Version:

This is an reactJS library for implementing klasha payment gateway

13 lines (9 loc) 264 B
'use strict'; const {pathToFileURL} = require('url'); module.exports = async filename => { const mod = await import(pathToFileURL(filename)); if ('default' in mod === false) { throw new Error(`${filename} has no default export`); } return mod.default; };