Skip to content

Commit a5bb19c

Browse files
committed
Fix 'failed to parse skin' bug
1 parent 71600a9 commit a5bb19c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/skin-museum-client/src/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
// There is some bug between how JSZip pulls in setimmediate (which it expects
2+
// to polyfill `window.setimmediate` and our Webpack setup. The result is that
3+
// one of our bundles is missing the polyfill. If we call JSZip code from within
4+
// that bundle the polyfill is not present and we get an error.
5+
//
6+
// This explicit import should ensure that the polyfill is present in the
7+
// entrypoint bundle and thus always set on `window`.
8+
//
9+
// We should be able to remove this once we root cause the bundling issue.
10+
import "setimmediate";
11+
112
import React from "react";
213
import ReactDOM from "react-dom";
314
import { Provider } from "react-redux";

0 commit comments

Comments
 (0)