External Plugin

This is a third-party plugin. Please report issues in its Github Repository(opens new window)

# Hardhat Dependency Compiler

Compile Solidity sources directly from NPM dependencies.

# Installation

yarn add --dev hardhat-dependency-compiler

# Usage

Load plugin in Hardhat config:

require('hardhat-dependency-compiler');

Add configuration under the dependencyCompiler key:

option description default
paths Array of dependency paths to compile []
dependencyCompiler: {
  paths: [
    '@openzeppelin/contracts/token/ERC20/IERC20.sol',
  ],
}