admin: updated rollup config for explicit ESM order

This commit is contained in:
Richard Moore 2023-05-18 17:11:34 -04:00
parent c8453577e9
commit 50ffd5950c

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