DEV Community

Discussion on: I'm Addy Osmani, Ask Me Anything!

Collapse
 
alexparish profile image
alexparish

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?

Collapse
 
addyosmani profile image
Addy Osmani • Edited

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.

Collapse
 
alexparish profile image
alexparish

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