Skip to content

Commit

Permalink
Sandbox promises to fix issues with other global polyfills.
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwede committed Jul 1, 2019
1 parent 82b2077 commit 7188231
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default [
external: [
'jspdf',
'html2canvas',
'es6-promise/auto'
],
globals: {
jspdf: 'jsPDF',
Expand All @@ -57,7 +56,6 @@ export default [
external: [
'jspdf',
'html2canvas',
'es6-promise/auto'
],
globals: {
jspdf: 'jsPDF',
Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'es6-promise/auto';

import Worker from './worker.js';
import './plugin/jspdf-plugin.js';
import './plugin/pagebreaks.js';
Expand Down
1 change: 1 addition & 0 deletions src/worker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import jsPDF from 'jspdf';
import html2canvas from 'html2canvas';
import { objType, createElement, cloneNode, toPx } from './utils.js';
var Promise = require('es6-promise').Promise;

/* ----- CONSTRUCTOR ----- */

Expand Down

0 comments on commit 7188231

Please sign in to comment.