Vue + iview package error unknown: Unexpected token

could you tell me how to deal with this problem?

tried to modify biuld/webpack.base.conf.js, but it didn"t work

      {
        test: /\.js$/,
        include: [resolve("src"), resolve("test"), resolve("static/iview/message/index.js")],
        use: [
          "babel-loader",
          {
            loader: "mpvue-loader",
            options: {
              checkMPEntry: true
            }
          },
        ]
      }

seems to be caused by the failure of compiling ES6 by Wechat developer tools. In Wechat developer tools, you can set-> Project Settings-> ES6 to ES5, and tick it to preview normally

Menu