terser/terser

Recommend --enable-source-maps

Open

#732 ouverte le 14 juin 2020

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

Description

Bug report or Feature request? Feature request (docs)

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

Complete CLI command or minify() options used N/A

Because --enable-source-maps is now a thing, Terser's readme and issue template should recommend it. It should be a lot easier to use than installing and requiring source-map-support in code you don't really control. Using it as part of the NODE_OPTIONS environment variable is especially interesting, because it affects Terser even if it was invoked from a child process.

Guide contributeur