hardhat
hardhat copied to clipboard
Consider dynamic imports for plugin dependencies
When defining the dependencies of a plugin it would be better if the dependency was dynamically imported rather than forcing the loading of the plugin as happens currently:
import hardhatIgnitionPlugin from "@ignored/hardhat-vnext-ignition"
export default {
id: PLUGIN_ID,
npmPackage: "@ignored/hardhat-vnext-ignition-viem",
dependencies: [
async () => hardhatIgnitionPlugin
]
}
Can we check whether all Hardhat plugins (and built-in plugins) are using dynamic imports. If they are we can close this issue.
Closing this as all packages have follow required standards