From 50ffd5950c3e8e2fa85ff8b6224c807faa7ce5ef Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Thu, 18 May 2023 17:11:34 -0400 Subject: [PATCH] admin: updated rollup config for explicit ESM order --- rollup.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.mjs b/rollup.config.mjs index 1b00070da..8a86d83fb 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -5,7 +5,7 @@ function getConfig(opts) { if (opts == null) { opts = { }; } const file = `./dist/ethers${ (opts.suffix || "") }.js`; - const exportConditions = [ "default", "module", "import" ]; + const exportConditions = [ "import", "default" ]; const mainFields = [ "module", "main" ]; if (opts.browser) { mainFields.unshift("browser"); }