Closed antonioaguilar closed 7 years ago
If you can, you're probably better off configuring rollup to point to Kefir's source, rather than the dist
. The dist
js file is a UMD module, rather than an ES6 module, which is probably what's causing the issue here. You may need to configure Rollup to handle the UMD wrapper properly.
@mAAdhaTTah do you have any pointers or examples on how to configure RollupJS with the UMD wrapper?
No, sorry, I use webpack mostly. Haven't used rollup yet.
Hey! You probably need to use https://github.com/rollup/rollup-plugin-commonjs in order to import cjs modules which Kefir is.
Thanks for the suggestions - I reverted to use Webpack to build my library but I'm still consider using Rollup to reduce unused methods and bundle size.
I installed Kefir via NPM and I'm trying to import Kefir using RollupJS but got the following errors:
This is the code example I'm trying to run:
and this is my RollupJS config:
using the following node deps:
Any ideas how to properly import Kefir using RollupJS? Note, I'm not ultra familiar with ES6 modules or RollupJS but since you are using it to build Kefir I thought I give it a try - I would like to use Kefir as part of another library.