ソースを参照

feat: taro3.5.4升级,jd env 无法启动

richard1015 3 年 前
コミット
2f180447f7

+ 1 - 0
src/sites/mobile-taro/vue/config/index.js

@@ -25,6 +25,7 @@ const config = {
     options: {}
   },
   framework: 'vue3',
+  compiler: 'webpack5',
   mini: {
     postcss: {
       pxtransform: {

+ 30 - 15
src/sites/mobile-taro/vue/package.json

@@ -37,28 +37,43 @@
   "dependencies": {
     "@babel/runtime": "^7.7.7",
     "@nutui/nutui-taro": "^3.1.18",
-    "@tarojs/components": "^3.4.13",
-    "@tarojs/mini-runner": "^3.4.13",
-    "@tarojs/runtime": "^3.4.13",
-    "@tarojs/taro": "^3.4.13",
-    "vue": "3.2.37"
+    "@tarojs/helper": "^3.5.4",
+    "@tarojs/components": "^3.5.4",
+    "@tarojs/mini-runner": "^3.5.4",
+    "@tarojs/plugin-platform-weapp": "^3.5.4",
+    "@tarojs/plugin-platform-alipay": "^3.5.4",
+    "@tarojs/plugin-platform-tt": "^3.5.4",
+    "@tarojs/plugin-platform-swan": "^3.5.4",
+    "@tarojs/plugin-platform-jd": "^3.5.4",
+    "@tarojs/plugin-platform-qq": "^3.5.4",
+    "@tarojs/router": "^3.5.4",
+    "@tarojs/runtime": "^3.5.4",
+    "@tarojs/shared": "^3.5.4",
+    "@tarojs/taro": "^3.5.4",
+    "@tarojs/taro-h5": "^3.5.4",
+    "@tarojs/plugin-html": "^3.5.4",
+    "@tarojs/plugin-framework-vue3": "^3.5.4",
+    "vue": "^3.2.38"
   },
   "devDependencies": {
     "@babel/core": "^7.8.0",
-    "@tarojs/cli": "^3.4.13",
-    "@tarojs/mini-runner": "^3.4.13",
-    "@tarojs/plugin-framework-vue3": "^3.4.13",
-    "@tarojs/plugin-html": "^3.4.13",
-    "@tarojs/webpack-runner": "^3.4.13",
+    "@tarojs/cli": "^3.5.4",
+    "@vue/babel-plugin-jsx": "^1.0.6",
+    "@tarojs/mini-runner": "^3.5.4",
+    "@tarojs/plugin-framework-vue3": "^3.5.4",
+    "@tarojs/plugin-html": "^3.5.4",
+    "webpack": "5.69.0",
+    "@tarojs/webpack5-runner": "^3.5.4",
     "@types/webpack-env": "^1.13.6",
     "@typescript-eslint/eslint-plugin": "^4.15.1",
     "@typescript-eslint/parser": "^4.15.1",
-    "@vue/compiler-sfc": "3.2.34",
-    "babel-preset-taro": "3.2.10",
-    "eslint": "^6.8.0",
-    "eslint-config-taro": "3.2.10",
-    "eslint-plugin-vue": "^7.0.0",
+    "@vue/compiler-sfc": "^3.0.0",
+    "babel-preset-taro": "3.5.4",
+    "eslint": "^8.12.0",
+    "eslint-plugin-vue": "^8.0.0",
+    "eslint-config-taro": "3.5.4",
     "stylelint": "9.3.0",
+    "style-loader": "1.3.0",
     "typescript": "4.6.4",
     "vue-loader": "^16.0.0-beta.8"
   }

+ 1 - 1
src/sites/mobile-taro/vue/src/pages/index/index.vue

@@ -31,7 +31,7 @@
   </div>
 </template>
 
-<script>
+<script lang="ts">
 import { reactive, toRefs } from 'vue';
 import { nav } from '../../../../../../config.json';
 import Taro from '@tarojs/taro';