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
  • 22,779
  • 66
  • 183
  • 324

0 Answers0