maxmarinich / vanilla-swipe

Tiny vanilla JS module to detect swipe direction and trigger custom events accordingly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing exports when using rollup

selimanac opened this issue · comments

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```

I fixed by using commonjs. sorry to bother.