Skip to content

Commit

Permalink
feat(plugin-legacy): use compact output when transpiling legacy chunks
Browse files Browse the repository at this point in the history
close #1828
  • Loading branch information
yyx990803 committed Jan 31, 2021
1 parent 4b6ebc3 commit 045e519
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-legacy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 045e519

Please sign in to comment.