Browse Source

兼容h5运行

shish 11 tháng trước cách đây
mục cha
commit
7fe8cf9083
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      mallApp/babel.config.js

+ 1 - 1
mallApp/babel.config.js

@@ -45,7 +45,7 @@ module.exports = {
     [
       '@vue/app',
       {
-        modules: 'commonjs',
+        modules: 'auto',
         useBuiltIns: process.env.UNI_PLATFORM === 'h5' ? 'usage' : 'entry'
       }
     ]