(source)
| 140 | * @returns {string} UTF-8 string without BOM |
| 141 | */ |
| 142 | const toBomFreeString = (source) => { |
| 143 | const text = Buffer.isBuffer(source) ? source.toString("utf8") : source; |
| 144 | const stripped = removeBOM(text); |
| 145 | return typeof stripped === "string" ? stripped : stripped.toString("utf8"); |
| 146 | }; |
| 147 | |
| 148 | class TypeScriptPlugin { |
| 149 | /** |
no test coverage detected