UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

13 lines (10 loc) 659 B
// This is an empty module that is used to exported it with a subpath that's // commonly used by Hardhat 2 plugins. This is to avoid the plugins breaking // when the `require` it, so that they have an opportunity to run a function // that throws a better error message. // The reason this module can be empty is that Hardhat 2 plugins are CJS modules // so they can destructure the require and get `undefined` values, instead of // a load-time error. // We could also throw from this file, but if it gets imported by an ESM module // you don't get an import-stack-trace, so you loose the possibility of figuring // out which plugin is triggering the error.