deshiknaves / caret-pos

Locate the current position of the caret. A plain JavaScript version of Caret.js.
MIT License
120 stars 15 forks source link

UMD module broken due to hyphen in named export #14

Closed SeanBannister closed 4 years ago

SeanBannister commented 4 years ago

Thanks for this project, extremely handy.

I noticed this module provides a UMD module, I grabbed it via the jsdelivr CDN. However the named export is caret-pos and javascript functions can't have hyphens in them, I don't use rollup but I believe the fix would be changing it in rollup.config.js

deshiknaves commented 4 years ago

Yep, that would be right. I can sort this out later today. I'll keep you posted

deshiknaves commented 4 years ago

I'm going to upgrade some packages and test it out while I'm at it. So probably going to be a day or so. Thanks

deshiknaves commented 4 years ago

This has been published