change --source-map-type [type] flag to --source-maps-inline and rename comment sourcemap type to inline

This commit is contained in:
Sebastian McKenzie
2014-10-08 23:59:38 +11:00
parent 77c2f1a8b2
commit b06cd42a0b
4 changed files with 11 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ transform._run = function (code, tree, opts) {
var result = util.generate(tree, genOpts);
if (opts.sourceMap) {
if (opts.sourceMap === "comment") {
if (opts.sourceMap === "inline") {
result.code += "\n" + util.sourceMapToComment(result.map);
}