Skip to content

Commit 7188231

Browse files
committed
Sandbox promises to fix issues with other global polyfills.
1 parent 82b2077 commit 7188231

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

rollup.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export default [
3333
external: [
3434
'jspdf',
3535
'html2canvas',
36-
'es6-promise/auto'
3736
],
3837
globals: {
3938
jspdf: 'jsPDF',
@@ -57,7 +56,6 @@ export default [
5756
external: [
5857
'jspdf',
5958
'html2canvas',
60-
'es6-promise/auto'
6159
],
6260
globals: {
6361
jspdf: 'jsPDF',

src/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import 'es6-promise/auto';
2-
31
import Worker from './worker.js';
42
import './plugin/jspdf-plugin.js';
53
import './plugin/pagebreaks.js';

src/worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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;
45

56
/* ----- CONSTRUCTOR ----- */
67

0 commit comments

Comments
 (0)