How to use the removeComments function from convert-source-map

Find comprehensive JavaScript convert-source-map.removeComments code examples handpicked from public code repositorys.

44
45
46
47
48
49
50
51
52
53
}

if (opts.sourceMap) {
    inputMap = convertSourceMap.fromSource(body);
    if (inputMap) inputMap = inputMap.toObject();
    body = convertSourceMap.removeComments(body);
    sourcemapper = new MagicString(body);
}

ast = acorn.parse(body, parserOpts);
fork icon0
star icon0
watch icon1