Add option to disable warnings when generating source map
This commit is contained in:
parent
6ea3f7fe34
commit
6798e1cee8
|
|
@ -62,6 +62,7 @@ function OutputStream(options) {
|
|||
comments : false,
|
||||
preserve_line : false,
|
||||
negate_iife : !(options && options.beautify),
|
||||
warnings : true,
|
||||
}, true);
|
||||
|
||||
var indentation = 0;
|
||||
|
|
@ -285,7 +286,7 @@ function OutputStream(options) {
|
|||
(!name && token.type == "name") ? token.value : name
|
||||
);
|
||||
} catch(ex) {
|
||||
AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]", {
|
||||
if (options.warnings) AST_Node.warn("Couldn't figure out mapping for {file}:{line},{col} → {cline},{ccol} [{name}]", {
|
||||
file: token.file,
|
||||
line: token.line,
|
||||
col: token.col,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user