diff --git a/package.json b/package.json index 15cc69e..d8f9547 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,11 @@ }, "./package.json": "./package.json", "./dist/*": "./dist/*", - "./nuxt/*": "./nuxt/*" + "./nuxt/*": "./nuxt/*", + "./nuxt": { + "import": "./nuxt/dist/module.mjs", + "require": "./nuxt/dist/module.cjs" + } }, "sideEffects": false, "scripts": { @@ -51,6 +55,7 @@ "@ethersproject/keccak256": "^5.4.0", "@web3-react/abstract-connector": "^6.0.7", "@web3-react/types": "^6.0.7", + "events": "^3.3.0", "tiny-invariant": "^1.1.0", "vue-demi": "^0.11.4" }, diff --git a/yarn.lock b/yarn.lock index 50c0085..3cc255c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -582,6 +582,11 @@ estree-walker@^2.0.1, estree-walker@^2.0.2: resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz" integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w== +events@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + execa@^0.8.0: version "0.8.0" resolved "https://registry.npmjs.org/execa/-/execa-0.8.0.tgz"