diff --git a/packages/plugin-legacy/index.js b/packages/plugin-legacy/index.js index 6be196f756faf6..a5fe91b80f8c98 100644 --- a/packages/plugin-legacy/index.js +++ b/packages/plugin-legacy/index.js @@ -204,6 +204,7 @@ function viteLegacyPlugin(options = {}) { let { code, ast, map } = loadBabel().transform(raw, { ast: true, configFile: false, + compact: true, sourceMaps, inputSourceMap: sourceMaps && chunk.map, presets: [