diff --git a/src/syntax.ts b/src/syntax.ts index c0366ee..0df8594 100644 --- a/src/syntax.ts +++ b/src/syntax.ts @@ -37,9 +37,9 @@ function _getCommentLocations(code: string) { allowAwaitOutsideFunction: true, allowImportExportEverywhere: true, onComment(_isBlock, _text, start, end) { - locations.push({ start, end }) - } - }) + locations.push({ start, end }); + }, + }); return locations; } @@ -51,9 +51,9 @@ function _getCommentLocations(code: string) { function stripComments(code: string) { const locations = _getCommentLocations(code); for (const location of locations.reverse()) { - code = code.slice(0, location.start) + code.slice(location.end) + code = code.slice(0, location.start) + code.slice(location.end); } - return code + return code; } /**