From 7b3457c546670714d38d06dc5625d027ca4e4dcd Mon Sep 17 00:00:00 2001 From: Oliver Schwede Date: Mon, 1 Jul 2019 17:22:30 +0200 Subject: [PATCH] Use proper import instead of require. --- src/worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ----- */