diff options
author | 2022-04-28 08:42:55 -0700 | |
---|---|---|
committer | 2022-04-28 11:42:55 -0400 | |
commit | 465b3a7970c1d3e59f7aa99d68be2c8bb50547ea (patch) | |
tree | 96b3852c65936cedd93fb09c16f3baf6ea2ef06e /examples/blog | |
parent | e90be57c25dc966417ee8a66c09276f93a87fa46 (diff) | |
download | astro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.tar.gz astro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.tar.zst astro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.zip |
Update example tsconfig (#3107)
Diffstat (limited to 'examples/blog')
-rw-r--r-- | examples/blog/tsconfig.json | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/blog/tsconfig.json b/examples/blog/tsconfig.json index 8e881cf9c..7ac81809a 100644 --- a/examples/blog/tsconfig.json +++ b/examples/blog/tsconfig.json @@ -1,5 +1,15 @@ { "compilerOptions": { - "moduleResolution": "node" + // Enable top-level await, and other modern ESM features. + "target": "ESNext", + "module": "ESNext", + // Enable node-style module resolution, for things like npm package imports. + "moduleResolution": "node", + // Enable JSON imports. + "resolveJsonModule": true, + // Enable stricter transpilation for better output. + "isolatedModules": true, + // Add type definitions for our Vite runtime. + "types": ["vite/client"] } } |