From 7635266e198c0aa0e14e3c797349f95a5f48b34a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Sodi=C4=87?= Date: Mon, 18 Mar 2024 17:01:23 +0100 Subject: [PATCH] Make first breakthrough in autocompleting imports --- waspc/data/Cli/templates/skeleton/tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/waspc/data/Cli/templates/skeleton/tsconfig.json b/waspc/data/Cli/templates/skeleton/tsconfig.json index b9b9412d93..13ee4b6cd6 100644 --- a/waspc/data/Cli/templates/skeleton/tsconfig.json +++ b/waspc/data/Cli/templates/skeleton/tsconfig.json @@ -5,6 +5,10 @@ // compiler. Proper TS compiler configuration in Wasp is coming soon :) { "compilerOptions": { + "target": "esnext", + // We're bundling all code in the end so this is the most appropriate option, + // it's also important for autocomplete to work properly. + "moduleResolution": "bundler", // JSX support "jsx": "preserve", "strict": true, @@ -33,4 +37,4 @@ // https://stackoverflow.com/questions/42609768/typescript-error-cannot-write-file-because-it-would-overwrite-input-file "outDir": ".wasp/phantom" } -} +} \ No newline at end of file