Optional string to add as a block comment at the start of the output file.
Should comments be included in output? Defaults to true
.
Set to true to avoid adding whitespace for formatting. Defaults to the value of opts.minified
.
Set to true to reduce whitespace (but not as much as opts.compact). Defaults to false
.
Set to true to enable support for experimental decorators syntax before module exports.
Defaults to false
.
Used in warning messages
Options for outputting jsesc representation.
Set to true to run jsesc with "json": true to print "\u00A9" vs. "©";
Should the output be minified. Defaults to false
.
Retain parens around function expressions (could be used to change engine parsing behavior)
Defaults to false
.
Attempt to use the same line numbers in the output code as in the source code (helps preserve stack traces).
Defaults to false
.
The filename for the source code (i.e. the code in the code
argument).
This will only be used if code
is a string.
Enable generating source maps. Defaults to false
.
A root for all relative URLs in the source map.
Function that takes a comment (as a string) and returns true if the comment should be included in the output.
By default, comments are included if opts.comments
is true
or if opts.minifed
is false
and the comment
contains @preserve
or @license
.
Optional string to add as a block comment at the end of the output file.