Skip to content

Error when trying to import into browser #51

@ray73864

Description

@ray73864

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions