0

I'm trying to use a polyfill for promises

The docs state I need to:

var Promise = require('es6-promise-polyfill').Promise;

But how can I import it ES6 style?

import Promise from ('es6-promise-polyfill').Promise;

The above fails.

panthro
  • 21,049
  • 61
  • 166
  • 295

0 Answers0