RobertWHurst / Keystrokes

Keystrokes as an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.
MIT License
158 stars 6 forks source link

Move to vite and vitest #12

Closed RobertWHurst closed 1 year ago

RobertWHurst commented 1 year ago

This PR is a bit of a big one. I've completely removed Parcel, and Mocha and added Vite and ViTest.

I love parcel but it's instability and number of bugs has been rather frustrating on this project and others. Vite just works, and carries a lot (but not all) of the conventions of parcel when it comes to treating assets equally to js.

In anycase this PR removes a lot of packages and configuration without removing any functionality. This should fix an issue discovered in #6 where when using the react package parcel failed to correctly name exported vars from keystrokes resulting in reference errors.