diff --git a/rollup-dist.config.js b/rollup-dist.config.js index 76a5d417d..e6441a8b0 100644 --- a/rollup-dist.config.js +++ b/rollup-dist.config.js @@ -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 };