Skip to content

Commit 819be18

Browse files
committed
fix: pass tsx/esm to wasm solc compiler as a file url
1 parent e3c79ea commit 819be18

File tree

1 file changed

+1
-1
lines changed
  • v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler

1 file changed

+1
-1
lines changed

v-next/hardhat/src/internal/builtin-plugins/solidity/build-system/compiler/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export class SolcJsCompiler implements Compiler {
125125
// If the script is a TypeScript file, we need to pass the --import tsx/esm
126126
// which is available, as we are running the tests
127127
const nodeOptions = scriptPath.endsWith(".ts")
128-
? ["--import", "tsx/esm"]
128+
? ["--import", import.meta.resolve("tsx/esm")]
129129
: [];
130130

131131
const args = [...nodeOptions];

0 commit comments

Comments
 (0)