Skip to content

Commit 045e519

Browse files
committed
feat(plugin-legacy): use compact output when transpiling legacy chunks
close #1828
1 parent 4b6ebc3 commit 045e519

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/plugin-legacy/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ function viteLegacyPlugin(options = {}) {
204204
let { code, ast, map } = loadBabel().transform(raw, {
205205
ast: true,
206206
configFile: false,
207+
compact: true,
207208
sourceMaps,
208209
inputSourceMap: sourceMaps && chunk.map,
209210
presets: [

0 commit comments

Comments
 (0)