ContractRunner should be imported using `import type`
tiakun opened this issue · comments
The issue is that my Svelte is not compiling due to ContractRunner
in the factory does not get imported using import type
. I think this is related to #636, but the fix did not include ethers-v6 target. Here is the code sample generated for ethers-v6 target:
The generated code should add type
to ContractRunner
-import { Contract, Interface, ContractRunner } from "ethers";
+import { Contract, Interface, type ContractRunner } from "ethers";