File tree 3 files changed +0
-38
lines changed
3 files changed +0
-38
lines changed Original file line number Diff line number Diff line change 1
1
import * as dotenv from "dotenv" ;
2
- import fs from "fs" ;
3
2
4
3
import { HardhatUserConfig , task } from "hardhat/config" ;
5
4
import "@nomiclabs/hardhat-waffle" ;
@@ -13,18 +12,9 @@ import "hardhat-watcher";
13
12
import "hardhat-docgen" ;
14
13
import "hardhat-contract-sizer" ;
15
14
import "hardhat-tracer" ;
16
- import "hardhat-preprocessor" ;
17
15
18
16
dotenv . config ( ) ;
19
17
20
- function getRemappings ( ) {
21
- return fs
22
- . readFileSync ( "remappings.txt" , "utf8" )
23
- . split ( "\n" )
24
- . filter ( Boolean )
25
- . map ( ( line ) => line . trim ( ) . split ( "=" ) ) ;
26
- }
27
-
28
18
const config : HardhatUserConfig = {
29
19
solidity : {
30
20
version : "0.8.9" ,
@@ -196,21 +186,6 @@ const config: HardhatUserConfig = {
196
186
} ,
197
187
] ,
198
188
} ,
199
- // This fully resolves paths for imports in the ./lib directory for Hardhat
200
- preprocess : {
201
- eachLine : ( hre ) => ( {
202
- transform : ( line : string ) => {
203
- if ( line . match ( / ^ \s * i m p o r t / i) ) {
204
- getRemappings ( ) . forEach ( ( [ find , replace ] ) => {
205
- if ( line . match ( find ) ) {
206
- line = line . replace ( find , replace ) ;
207
- }
208
- } ) ;
209
- }
210
- return line ;
211
- } ,
212
- } ) ,
213
- } ,
214
189
} ;
215
190
216
191
export default config ;
Original file line number Diff line number Diff line change 53
53
"hardhat-deploy-tenderly" : " ^0.2.0" ,
54
54
"hardhat-docgen" : " ^1.3.0" ,
55
55
"hardhat-gas-reporter" : " ^1.0.9" ,
56
- "hardhat-preprocessor" : " ^0.1.5" ,
57
56
"hardhat-tracer" : " ^1.1.1" ,
58
57
"hardhat-watcher" : " ^2.5.0" ,
59
58
"json-schema" : " ^0.4.0" ,
Original file line number Diff line number Diff line change @@ -2282,7 +2282,6 @@ __metadata:
2282
2282
hardhat-deploy-tenderly: ^0.2.0
2283
2283
hardhat-docgen: ^1.3.0
2284
2284
hardhat-gas-reporter: ^1.0.9
2285
- hardhat-preprocessor: ^0.1.5
2286
2285
hardhat-tracer: ^1.1.1
2287
2286
hardhat-watcher: ^2.5.0
2288
2287
json-schema: ^0.4.0
@@ -12749,17 +12748,6 @@ __metadata:
12749
12748
languageName: node
12750
12749
linkType: hard
12751
12750
12752
- "hardhat-preprocessor@npm:^0.1.5":
12753
- version: 0.1.5
12754
- resolution: "hardhat-preprocessor@npm:0.1.5"
12755
- dependencies:
12756
- murmur-128: ^0.2.1
12757
- peerDependencies:
12758
- hardhat: ^2.0.5
12759
- checksum: 7d543c2965828441741950b153d584ff096d7a006975f06af9870e05a928e56122b463c4a1b3b346f9a3baccaa6ee2dec1dfd026a434ac714ebf127bbe842fef
12760
- languageName: node
12761
- linkType: hard
12762
-
12763
12751
"hardhat-tracer@npm:^1.1.1":
12764
12752
version: 1.1.1
12765
12753
resolution: "hardhat-tracer@npm:1.1.1"
You can’t perform that action at this time.
0 commit comments