Fix WebWorker support in rollup files (#2976).

This commit is contained in:
Richard Moore 2022-05-20 18:18:24 -04:00
parent ed7e6a500e
commit d06aa26d74

View File

@ -96,7 +96,7 @@ function getUmdConfig() {
name: "ethers",
sourcemap: true
},
context: "window",
context: "commonjsGlobal",
treeshake: false,
plugins
};
@ -122,7 +122,7 @@ function getEsmConfig() {
format: "esm",
sourcemap: true
},
context: "window",
context: "commonjsGlobal",
treeshake: false,
plugins
};