From 045e519d51fbce94bddb60793e9e99311acc5aa2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 31 Jan 2021 14:26:08 -0500 Subject: [PATCH] feat(plugin-legacy): use compact output when transpiling legacy chunks close #1828 --- packages/plugin-legacy/index.js | 1 + 1 file changed, 1 insertion(+) 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: [