Add “proposal-object-rest-spread” plugin to babel.config.js to fix Microsoft Edge error SCRIPT1028
问题 I need to add this Babel plugin to babel.config.js to get rid of the Microsoft Edge Browser error SCRIPT1028: Expected identifier, string or number I installed the latest packages and added them to package.json. Below is what I tried but it doesn't transform the code after running npm run build : babel.config.js require("@babel/core").transform("code", {}); module.exports = { presets: ["@vue/app"], plugins: ["@babel/plugin-proposal-object-rest-spread"] }; package.json { "name": "example",