Skip to content

Commit d06aa26

Browse files
committed
Fix WebWorker support in rollup files (ethers-io#2976).
1 parent ed7e6a5 commit d06aa26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rollup-dist.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getUmdConfig() {
9696
name: "ethers",
9797
sourcemap: true
9898
},
99-
context: "window",
99+
context: "commonjsGlobal",
100100
treeshake: false,
101101
plugins
102102
};
@@ -122,7 +122,7 @@ function getEsmConfig() {
122122
format: "esm",
123123
sourcemap: true
124124
},
125-
context: "window",
125+
context: "commonjsGlobal",
126126
treeshake: false,
127127
plugins
128128
};

0 commit comments

Comments
 (0)