dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 356 forks source link

ES6 support ? #91

Closed stephane-r closed 7 years ago

stephane-r commented 8 years ago

Hi,

A media with babel is it possible? I've error when i run with blazy babel :)

kamotos commented 8 years ago

Not sure how your setup looks likes, but I use blazy with no issues using ES6 (babel/webpack)

dinbror commented 8 years ago

hey @LeG3nDz

Can you elaborate a bit more? What error do you get? How is your setup? Any code to see?

stephane-r commented 8 years ago

Hi guys !

I've this error, after my grunt babel command :

Erreur : TypeError: p is undefined

My config :

options: { sourceMap: true, presets: ['es2015'], compact: false }, dist: { files: { '<%= config.publicJs %>': '<%= config.publicJs %>' } }

Thank you !