score:2

Accepted answer

include babel-polyfill.

for webpack, add it to the entry config:

module.exports = {
  entry: ["babel-polyfill", "./app/js"]
};

you can also import it at the top of other files: import "babel-polyfill", but make sure it's included first.


Related Query

More Query from same tag