Commit 862b8119df7be399f665302ff1de9e594ab0ba95

Authored by “wangming”
1 parent 86c31cd5

Update tsconfig.json to enhance TypeScript configuration with stricter settings …

…and modern module resolution options.
美国版/Food Labeling Management App UniApp/tsconfig.json
1 1 {
2   - "extends": "@vue/tsconfig/tsconfig.json",
3 2 "compilerOptions": {
  3 + "target": "ESNext",
  4 + "useDefineForClassFields": true,
  5 + "module": "ESNext",
  6 + "moduleResolution": "bundler",
  7 + "strict": true,
  8 + "jsx": "preserve",
  9 + "resolveJsonModule": true,
  10 + "isolatedModules": true,
  11 + "verbatimModuleSyntax": true,
  12 +
4 13 "sourceMap": true,
5 14 "baseUrl": ".",
6 15 "paths": {
7 16 "@/*": ["./src/*"]
8 17 },
9   - "lib": ["esnext", "dom"],
  18 + "lib": ["ESNext", "DOM"],
10 19 "types": ["@dcloudio/types"]
11 20 },
12 21 "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
... ...