lukeed / premove

A tiny (201B to 247B) utility to remove items recursively
MIT License
66 stars 7 forks source link

Doesn't work without esModuleInterop in TypeScript #2

Closed d-fischer closed 4 years ago

d-fischer commented 4 years ago

The type definition says that this module can be default-imported. This is not the case by default though. I get this error at runtime (!):

TypeError: premove_1.default is not a function

lukeed/bundt#3 should fix this without any other modifications to this module. (also I'd be very grateful if you rebuilt klona and polka with that PR applied as well 🙂)

lukeed commented 4 years ago

Resolved with v3.0.0 -- thanks!

Sorry btw, somehow I wasn't watching this repo anymore