diff --git a/src/worker.js b/src/worker.js index 8cc3d35..ee40224 100644 --- a/src/worker.js +++ b/src/worker.js @@ -1,7 +1,8 @@ import jsPDF from 'jspdf'; import html2canvas from 'html2canvas'; import { objType, createElement, cloneNode, toPx } from './utils.js'; -var Promise = require('es6-promise').Promise; +import es6promise from 'es6-promise'; +var Promise = es6promise.Promise; /* ----- CONSTRUCTOR ----- */