We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf2874 commit 6617ed0Copy full SHA for 6617ed0
src/index.js
@@ -27,7 +27,7 @@ if (!objects) {
27
objects[id] = blob;
28
return `blob:http://localhost/${id}`;
29
};
30
- self.URL.revokeObjectURL = (url) => {
+ self.URL.revokeObjectURL = url => {
31
let m = String(url).match(/^blob:http:\/\/localhost\/(.+)$/);
32
if (m) delete objects[m[1]];
33
@@ -97,6 +97,8 @@ function Worker(url, options) {
97
},
98
fetch: self.fetch,
99
importScripts() {},
100
+ require,
101
+ exports,
102
103
inside.on('message', e => {
104
if (terminated) return;
0 commit comments