admin: updated rollup config for explicit ESM order
This commit is contained in:
parent
c8453577e9
commit
50ffd5950c
@ -5,7 +5,7 @@ function getConfig(opts) {
|
|||||||
if (opts == null) { opts = { }; }
|
if (opts == null) { opts = { }; }
|
||||||
|
|
||||||
const file = `./dist/ethers${ (opts.suffix || "") }.js`;
|
const file = `./dist/ethers${ (opts.suffix || "") }.js`;
|
||||||
const exportConditions = [ "default", "module", "import" ];
|
const exportConditions = [ "import", "default" ];
|
||||||
const mainFields = [ "module", "main" ];
|
const mainFields = [ "module", "main" ];
|
||||||
if (opts.browser) { mainFields.unshift("browser"); }
|
if (opts.browser) { mainFields.unshift("browser"); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user