Since NextJS is prerendered serverside, and it uses Nodejs which uses commonjs exports instead, the export default breaks it (expects module.exports = foo)
To fix this, maybe it could be compiled into separate files or into UMD (Universal module definition) by something like rollup
Currently it breaks with NextJS.
Since NextJS is prerendered serverside, and it uses Nodejs which uses commonjs exports instead, the
export default
breaks it (expectsmodule.exports = foo
)To fix this, maybe it could be compiled into separate files or into UMD (Universal module definition) by something like rollup