When trying to import into the browser by doing <script src="https://unpkg.com/browse/@rwh/keystrokes@latest/dist/keystrokes.umd.cjs"> I get a 302 redirect and then a 0B file.
If I use the version on jsDelivr via <script src="https://cdn.jsdelivr.net/npm/@rwh/keystrokes@1.5.6/dist/keystrokes.min.js"></script> I get a SyntaxError: Unexpected token 'export' (at keystrokes.min.js:7:11663)
If I use the non-minified version on jsDelivr via <script src="https://cdn.jsdelivr.net/npm/@rwh/keystrokes@1.5.6/dist/keystrokes.js"></script> I get the error SyntaxError: Unexpected token 'export' (at keystrokes.js:486:1)
I would love to use this library as it looks nicer to use than Hotkeys which requires me to setscopes, etc... But so far I've had zero luck getting it to load in the browser.
When trying to import into the browser by doing
<script src="https://unpkg.com/browse/@rwh/keystrokes@latest/dist/keystrokes.umd.cjs">I get a 302 redirect and then a 0B file.If I use the version on jsDelivr via
<script src="https://cdn.jsdelivr.net/npm/@rwh/keystrokes@1.5.6/dist/keystrokes.min.js"></script>I get aSyntaxError: Unexpected token 'export' (at keystrokes.min.js:7:11663)If I use the non-minified version on jsDelivr via
<script src="https://cdn.jsdelivr.net/npm/@rwh/keystrokes@1.5.6/dist/keystrokes.js"></script>I get the errorSyntaxError: Unexpected token 'export' (at keystrokes.js:486:1)I would love to use this library as it looks nicer to use than Hotkeys which requires me to setscopes, etc... But so far I've had zero luck getting it to load in the browser.