Skip to content

Commit

Permalink
Improve tsconfig.json
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
harmony7 committed Oct 14, 2024
1 parent b5a01d4 commit a6611e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a6611e4

Please sign in to comment.