From ad7d863ecbbd53587e5f40ed101d8976034b7b19 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Mon, 29 Mar 2021 22:22:27 -0700 Subject: [PATCH] Set target to ESNext in default tsconfig.json --- .changeset/shaggy-elephants-sell.md | 5 +++++ packages/create-svelte/template-additions/tsconfig.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/shaggy-elephants-sell.md diff --git a/.changeset/shaggy-elephants-sell.md b/.changeset/shaggy-elephants-sell.md new file mode 100644 index 000000000000..c35900de3379 --- /dev/null +++ b/.changeset/shaggy-elephants-sell.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Set target to ESNext in default tsconfig.json diff --git a/packages/create-svelte/template-additions/tsconfig.json b/packages/create-svelte/template-additions/tsconfig.json index 8d501c1d09ae..33312f71069b 100644 --- a/packages/create-svelte/template-additions/tsconfig.json +++ b/packages/create-svelte/template-additions/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "moduleResolution": "node", - "target": "es2018", + "target": "ESNext", /** svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript to enforce using \`import type\` instead of \`import\` for Types.