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

Needs compilation step #1

Closed
fregante opened this issue Jul 5, 2016 · 2 comments
Closed

Needs compilation step #1

fregante opened this issue Jul 5, 2016 · 2 comments

Comments

@fregante
Copy link
Collaborator

fregante commented Jul 5, 2016

browserify automatically skips transforms (babel) on external modules so arrow functions are imported as is and don't work in Safari and IE.

I'd suggest rollup + rollup-buble

@fregante
Copy link
Collaborator Author

fregante commented Jul 5, 2016

That doesn't really "fix" it. As is it's incompatible with all versions of Safari and breaks the JS file that imports it. Not to mention UglifyJS, which crashes on =>, preventing the file creation for any browser. mishoo/UglifyJS#448

@sindresorhus
Copy link
Owner

@bfred-it Not really something I care about, sorry. I made this to solve my own use-case, which is in an Electron app and a Chrome extension, both fully supporting ES2015. I've now document the requirement. There are probably other similar modules out there you can use instead ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants