From a031f262ab43544e5ff76aa6a71323464180f342 Mon Sep 17 00:00:00 2001 From: L&H Date: Mon, 13 Nov 2023 15:23:21 +0800 Subject: [PATCH] chore: open tsconfig.useDefineForClassFields --- apps/vue-demo/README.md | 10 ++++++++++ tsconfig.base.json | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 apps/vue-demo/README.md diff --git a/apps/vue-demo/README.md b/apps/vue-demo/README.md new file mode 100644 index 0000000..a215334 --- /dev/null +++ b/apps/vue-demo/README.md @@ -0,0 +1,10 @@ +# README + +## Issues + +### Scoped style leads to error: TS7006: Parameter 'n' implicitly has an 'any' type + +See + +- https://github.com/vuejs/vue-loader/issues/1915 +- https://github.com/vuejs/core/pull/9363 diff --git a/tsconfig.base.json b/tsconfig.base.json index 101cb0c..59feb11 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,8 +3,8 @@ "ts-node": { "transpileOnly": true, "compilerOptions": { - "module": "CommonJS", - "target": "ESNext" + "target": "ESNext", + "module": "CommonJS" } }, "compilerOptions": { @@ -12,13 +12,13 @@ "composite": true, "declaration": true, "declarationMap": true, - "pretty": true, "strict": true, "sourceMap": true, "skipLibCheck": true, "importHelpers": true, "esModuleInterop": true, "resolveJsonModule": true, + "useDefineForClassFields": true, "target": "ES2016", "module": "ESNext", "moduleResolution": "node"