Skip to content

Commit 7b3457c

Browse files
committed
Use proper import instead of require.
1 parent 7188231 commit 7b3457c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import jsPDF from 'jspdf';
22
import html2canvas from 'html2canvas';
33
import { objType, createElement, cloneNode, toPx } from './utils.js';
4-
var Promise = require('es6-promise').Promise;
4+
import es6promise from 'es6-promise';
5+
var Promise = es6promise.Promise;
56

67
/* ----- CONSTRUCTOR ----- */
78

0 commit comments

Comments
 (0)