summaryrefslogtreecommitdiff
path: root/examples/framework-multiple
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-04-28 08:42:55 -0700
committerGravatar GitHub <noreply@github.com> 2022-04-28 11:42:55 -0400
commit465b3a7970c1d3e59f7aa99d68be2c8bb50547ea (patch)
tree96b3852c65936cedd93fb09c16f3baf6ea2ef06e /examples/framework-multiple
parente90be57c25dc966417ee8a66c09276f93a87fa46 (diff)
downloadastro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.tar.gz
astro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.tar.zst
astro-465b3a7970c1d3e59f7aa99d68be2c8bb50547ea.zip
Update example tsconfig (#3107)
Diffstat (limited to 'examples/framework-multiple')
-rw-r--r--examples/framework-multiple/tsconfig.json12
1 files changed, 11 insertions, 1 deletions
diff --git a/examples/framework-multiple/tsconfig.json b/examples/framework-multiple/tsconfig.json
index 8e881cf9c..7ac81809a 100644
--- a/examples/framework-multiple/tsconfig.json
+++ b/examples/framework-multiple/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"]
}
}