From a6611e4e7bdeaf93f5589a5d0568a5ad39433ffa Mon Sep 17 00:00:00 2001 From: Katsuyuki Omuro Date: Mon, 14 Oct 2024 13:15:17 -0700 Subject: [PATCH] Improve tsconfig.json * Use moduleResolution: bundler to enable conditional imports and exports * Add "fastly" custom condition to match js-compute-runtime * Remove skipLibCheck as that is no longer needed --- tsconfig.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 3e3c847..20b433b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,12 +3,12 @@ "strict": true, "module": "ES2022", "target": "ES2022", - "moduleResolution": "node", + "moduleResolution": "bundler", + "customConditions": [ "fastly" ], "esModuleInterop": true, - "lib": [ "es2022" ], + "lib": [ "ES2022" ], "rootDir": "src", - "outDir": "build", - "skipLibCheck": true + "outDir": "build" }, "include": [ "./src/**/*.js",