sindresorhus / element-ready

Detect when an element is ready in the DOM
MIT License
436 stars 15 forks source link

Needs compilation step #1

Closed fregante closed 8 years ago

fregante commented 8 years ago

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 commented 8 years ago

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. https://github.com/mishoo/UglifyJS2/issues/448

sindresorhus commented 8 years ago

@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 ;)