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"); }