chenlei 11 месяцев назад
Родитель
Сommit
8fbf4d656a
5 измененных файлов с 12948 добавлено и 10067 удалено
  1. 2 1
      package.json
  2. 12913 0
      pnpm-lock.yaml
  3. 25 24
      tsconfig.json
  4. 8 0
      vue.config.js
  5. 0 10042
      yarn.lock

+ 2 - 1
package.json

@@ -16,6 +16,7 @@
     "lodash": "^4.17.21",
     "pinia": "^2.0.24",
     "query-string": "^8.1.0",
+    "swiper": "^11.1.10",
     "vue": "^3.2.13",
     "vue-class-component": "^8.0.0-0",
     "vue-router": "^4.0.3"
@@ -54,7 +55,7 @@
     "sass": "^1.32.7",
     "sass-loader": "^12.0.0",
     "ts-jest": "^27.0.4",
-    "typescript": "~4.5.5",
+    "typescript": "^5.5.4",
     "unplugin-auto-import": "^0.11.2",
     "unplugin-vue-components": "^0.22.7"
   }

Разница между файлами не показана из-за своего большого размера
+ 12913 - 0
pnpm-lock.yaml


+ 25 - 24
tsconfig.json

@@ -1,24 +1,25 @@
-{
-  "compilerOptions": {
-    "target": "esnext",
-    "module": "esnext",
-    "strict": true,
-    "jsx": "preserve",
-    "moduleResolution": "node",
-    "experimentalDecorators": true,
-    "skipLibCheck": true,
-    "esModuleInterop": true,
-    "allowSyntheticDefaultImports": true,
-    "forceConsistentCasingInFileNames": true,
-    "useDefineForClassFields": true,
-    "sourceMap": true,
-    "baseUrl": ".",
-    "types": ["webpack-env"],
-    "paths": {
-      "@/*": ["src/*"]
-    },
-    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
-  },
-  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
-  "exclude": ["node_modules"]
-}
+{
+  "compilerOptions": {
+    "target": "esnext",
+    "module": "esnext",
+    "strict": true,
+    "jsx": "preserve",
+    "jsxImportSource": "vue",
+    "moduleResolution": "node",
+    "experimentalDecorators": true,
+    "skipLibCheck": true,
+    "esModuleInterop": true,
+    "allowSyntheticDefaultImports": true,
+    "forceConsistentCasingInFileNames": true,
+    "useDefineForClassFields": true,
+    "sourceMap": true,
+    "baseUrl": ".",
+    "types": ["webpack-env"],
+    "paths": {
+      "@/*": ["src/*"]
+    },
+    "lib": ["esnext", "dom", "dom.iterable", "scripthost"]
+  },
+  "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx"],
+  "exclude": ["node_modules"]
+}

+ 8 - 0
vue.config.js

@@ -145,6 +145,14 @@ module.exports = defineConfig({
             reuseExistingChunk: true,
             enforce: true,
           },
+          swiper: {
+            name: 'swiper',
+            test: /[\\/]node_modules[\\/]swiper[\\/]/,
+            chunks: 'initial',
+            priority: 3,
+            reuseExistingChunk: true,
+            enforce: true,
+          },
         },
       });
     }

Разница между файлами не показана из-за своего большого размера
+ 0 - 10042
yarn.lock