terser/terser

Strip the final semi-colon?

Open

#1 119 ouverte le 27 nov. 2021

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)JavaScript (8 215 stars) (386 forks)batch import
good first issue

Description

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{}

Guide contributeur