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.
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.