From e7c46c094deb451317f980fdfa46a144b71da97b 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 es2019 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 0000000000000..413eb22528590 --- /dev/null +++ b/.changeset/shaggy-elephants-sell.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Set target to es2019 in default tsconfig.json diff --git a/packages/create-svelte/template-additions/tsconfig.json b/packages/create-svelte/template-additions/tsconfig.json index 8d501c1d09ae8..3f837e3702398 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": "es2019", /** 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.