Skip to content

Commit

Permalink
feat: bundler module resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
rin-st committed Jul 12, 2024
1 parent 5a65fb1 commit b8cbec6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 5 additions & 2 deletions packages/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"paths": {
"~~/*": ["./*"]
"~~/*": ["./*"],
"abitype": ["./node_modules/abitype"],
"viem/node_modules/abitype": ["./node_modules/viem/node_modules/abitype"],
"wagmi/node_modules/abitype": ["./node_modules/wagmi/node_modules/abitype"]
},
"plugins": [
{
Expand Down
4 changes: 3 additions & 1 deletion packages/nextjs/types/abitype/abi.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import "abitype";
import "viem";
import "wagmi";

type AddressType = string;

Expand All @@ -14,7 +16,7 @@ declare module "viem/node_modules/abitype" {
}
}

declare module "wagmi/node_moudles/abitype" {
declare module "wagmi/node_modules/abitype" {
export interface Register {
AddressType: AddressType;
}
Expand Down

0 comments on commit b8cbec6

Please sign in to comment.