From 584ae884416e9c06977c915066ce59d1a6550ec4 Mon Sep 17 00:00:00 2001 From: ShaMan123 Date: Thu, 16 Nov 2023 07:56:03 +0200 Subject: [PATCH] fix parcel ts bug fix parcel ts bug --- .codesandbox/templates/vanilla/package.json | 6 ++--- .codesandbox/templates/vanilla/tsconfig.json | 24 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .codesandbox/templates/vanilla/tsconfig.json diff --git a/.codesandbox/templates/vanilla/package.json b/.codesandbox/templates/vanilla/package.json index afee3bfc808..1e6fb45dbd6 100644 --- a/.codesandbox/templates/vanilla/package.json +++ b/.codesandbox/templates/vanilla/package.json @@ -11,9 +11,9 @@ "fabric": "file:../../.." }, "devDependencies": { - "@parcel/transformer-typescript-tsc": "^2.7.0", - "parcel": "^2.9.3", - "typescript": "^5.0.2" + "@parcel/transformer-typescript-tsc": "^2.10.3", + "parcel": "^2.10.3", + "typescript": "^5.2.2" }, "keywords": [ "vanilla", diff --git a/.codesandbox/templates/vanilla/tsconfig.json b/.codesandbox/templates/vanilla/tsconfig.json new file mode 100644 index 00000000000..debc33f2aab --- /dev/null +++ b/.codesandbox/templates/vanilla/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "allowJs": true, + "alwaysStrict": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "isolatedModules": true, + "jsx": "preserve", + "lib": ["dom", "es2017"], + "module": "esnext", + "moduleResolution": "node", + "noEmit": true, + "noFallthroughCasesInSwitch": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "strict": true, + "target": "esnext", + "incremental": true + }, + "exclude": ["node_modules"], + "include": ["**/*.ts"] +}