re: I'm Addy Osmani, Ask Me Anything! VIEW POST

FULL DISCUSSION
 

Are there any important considerations or gotchas when shipping an ES2015 bundle to modern browsers and a transpiled bundle to legacy browsers? Is this something you recommend?

 

One caveat off the top of my head: check the bundle that is being served to search crawlers can be interpreted correctly. For Google Search, our web rendering service is based on Chrome 41.

I would just check to ensure the legacy (non-ES2015) bundle doesn't also contain anything that requires additional polyfills. If it does, look at ways you can feature detect and serve that additional JS as needed.

 

Hadn’t thought of crawlers! Great shout, thank you.

code of conduct - report abuse