Skip to content

Commit

Permalink
Fixed ethers imported in web workers (#3856).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Mar 7, 2023
1 parent abeaa74 commit 5f2678f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ function getConfig(opts) {
input: "./lib.esm/index.js",
output: {
file,
banner: "const __$G = (typeof globalThis !== 'undefined' ? globalThis: typeof window !== 'undefined' ? window: typeof global !== 'undefined' ? global: typeof self !== 'undefined' ? self: {});",
name: (opts.name || undefined),
format: (opts.format || "esm"),
sourcemap: true
},
context: "window",
context: "__$G",
treeshake: false,
plugins: [ nodeResolve({
exportConditions,
Expand Down

0 comments on commit 5f2678f

Please sign in to comment.