terser/terser

Strip the final semi-colon?

Open

#1,119 opened on 2021年11月27日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)JavaScript (8,215 stars) (386 forks)batch import
good first issue

説明

Bug report or Feature request?

terser should not insert ; at the end

Version (complete output of terser -V or specific git commit)

terser 5.10.0

Complete CLI command or minify() options used

The playground default config

{
  module: true,
  compress: {},
  mangle: {},
  output: {},
  parse: {},
  rename: {},
}

terser input

export default {}

terser output or error

export default{};

Expected result

export default{}

コントリビューターガイド