const plugins = []; if (process.env.ENV === "production") { plugins.push(["transform-remove-console", { exclude: ["error", "warn"] }]); plugins.push("transform-remove-debugger"); } module.exports = { presets: ["@vue/cli-plugin-babel/preset"], plugins, };