A Promise polyfill for sketch inspired by promise-polyfill. It is automatically included (when needed) when using skpm.
It takes care of keeping the script around so that Sketch won't crash when your Promise resolves.
npm i -S sketch-polyfill-promise
const Promise = require('sketch-polyfill-promise')
new Promise((resolve, reject) => {
...
})