Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code is not transpiled to ES5 #3

Open
einarlove opened this issue Oct 9, 2019 · 3 comments

Comments

@einarlove
Copy link

commented Oct 9, 2019

If you install this and import it you'll get SyntaxError: Unexpected token import.

Suggest you add a rollup config and release something compiled to something parseable by browsers.

@mcernusca

This comment has been minimized.

Copy link
Owner

commented Oct 9, 2019

Thanks, on it 👍

@mcernusca

This comment has been minimized.

Copy link
Owner

commented Oct 10, 2019

@einarlove try out 0.1.8

@einarlove

This comment has been minimized.

Copy link
Author

commented Oct 14, 2019

Somethings up with the export.

import useKeyState from 'use-key-state' // undefined
import { useKeyState } from 'use-key-state' // undefined
import * as useKeyState from 'use-key-state' // { default: { useKeyState: Function } …}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.