maxmarinich / vanilla-swipe

Tiny vanilla JS module to detect swipe direction and trigger custom events accordingly.
MIT License
33 stars 5 forks source link

Missing exports when using rollup #32

Closed selimanac closed 1 year ago

selimanac commented 1 year ago

I couldn't manage to import properly by using latest rollup. How can I use it with namedExports? Any suggestions are welcome.

Thank you.


(!) Missing exports
https://rollupjs.org/guide/en/#error-name-is-not-exported-by-module
...
default is not exported by node_modules/vanilla-swipe/lib/index.js```
selimanac commented 1 year ago

I fixed by using commonjs. sorry to bother.