* Returns a commented version of string. * @param {string} str string to be converted to commented in bundle code * @returns {string} returns a commented version of string
(str)
| 131 | * @returns {string} returns a commented version of string |
| 132 | */ |
| 133 | static toComment(str) { |
| 134 | if (!str) return ""; |
| 135 | return `/*! ${str.includes("*/") ? str.replace(COMMENT_END_REGEX, "* /") : str} */`; |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Returns a commented version of string. |
no test coverage detected