-1

Why does MDC Getting Started (Step 3) say, "We need to configure webpack to bundle ES2015 JavaScript into standard JavaScript, through babel"?

Will someone from Google please clarify the circumstances under which:

  • "Standard" (I imagine they mean pre ES2015) JavaScript is necessary
  • "Standard" (I imagine they mean pre ES2015) JavaScript is not necessary
wazz
  • 4,953
  • 5
  • 20
  • 34
  • 1
    It depends on what browsers you want to support, if it's only modern browsers you probably don't even need babel. – Keith Jul 31 '18 at 15:17
  • 2
    What even is “standard” JavaScript other than JavaScript according to the ECMAScript 2018 spec, currently? If they mean ECMAScript 3, ECMAScript 5 or ECMAScript 5.1, they should probably clarify that. – Sebastian Simon Jul 31 '18 at 15:18

1 Answers1

0

ES2015 is also "standard JavaScript", but it is still "quite new" and a a lot of clients still use browsers that do not suport it. Thats why you have to fallback to an older version if you want to support all clients, if you don't care of them you don't need that step.

Jonas Wilms
  • 132,000
  • 20
  • 149
  • 151