* Remove the byte order mark from a string if it's present since it would mess with our template generation logic * @param {string} source
(source)
| 181 | * @param {string} source |
| 182 | */ |
| 183 | function remove_bom(source) { |
| 184 | if (source.charCodeAt(0) === 0xfeff) { |
| 185 | return source.slice(1); |
| 186 | } |
| 187 | return source; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * @deprecated Replace this with `import { walk } from 'estree-walker'` |
no outgoing calls
no test coverage detected