Skip to content

Commit

Permalink
Add UMD output to dist builds (ethers-io#3814).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 5867293 commit ac25516
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ function getConfig(opts) {
input: "./lib.esm/index.js",
output: {
file,
format: "esm",
name: (opts.name || undefined),
format: (opts.format || "esm"),
sourcemap: true
},
context: "window",
Expand All @@ -29,6 +30,7 @@ function getConfig(opts) {

export default [
getConfig({ browser: true }),
getConfig({ browser: true, suffix: ".umd", format: "umd", name: "ethers" }),
{
input: "./lib.esm/wordlists/wordlists-extra.js",
output: {
Expand Down

0 comments on commit ac25516

Please sign in to comment.