I am trying to create a custom NPM package, but I get crazy with the Imports/Exports. To bundle everything together I'm using webpack in the package itself and in the "testing-environment"
Package
const myFunc = (options) => {
console.log('init')
}
export default myFunc
Testing
import myFunc from 'my-package'
myFunc()
Results in the following error:
main.js:1 Uncaught TypeError: t.n(...)(...) is not a function