function evadeComment(node) {
  node.type = 'CommentBlock';
  // Within comments...
  node.value = node.value
    // ...strip extraneous comment whitespace
    .replace(/^\s+/gm, ' ')
    // ...replace HTML comments with a defanged version to pass SES restrictions.
    .replace(HTML_COMMENT_START_RE, '<!=-')
    .replace(HTML_COMMENT_END_RE, '-=>')
    // ...replace import expressions with a defanged version to pass SES restrictions
    // (featuring homoglyphs for @kriskowal)
    .replace(IMPORT_RE, 'IMPORT$2')
    // ...replace end-of-comment markers
    .replace(/\*\//g, '*X/');
}
Rewrites a Comment Node to avoid triggering SES restrictions.

Apparently coerces all comments to block comments.

@param {import('@babel/types').Comment} node