terser/terser

Recommend --enable-source-maps

Open

#732 opened on Jun 14, 2020

View on GitHub
 (0 comments) (2 reactions) (0 assignees)JavaScript (386 forks)batch import
good first issue

Repository metrics

Stars
 (8,215 stars)
PR merge metrics
 (Avg merge 8d 16h) (1 merged PR in 30d)

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.

Contributor guide