(path)
| 129 | } |
| 130 | |
| 131 | function patchIndex(path) { |
| 132 | let source = readSource(path); |
| 133 | |
| 134 | source = replaceRequired(source, INDEX_PREFS_OLD, INDEX_PREFS_NEW); |
| 135 | source = replaceRequired(source, INDEX_FONT_OLD, INDEX_FONT_NEW); |
| 136 | source = replaceRequired(source, INDEX_WEBGL_OLD, INDEX_WEBGL_NEW); |
| 137 | |
| 138 | assertIndexPatched(source); |
| 139 | writeSource(path, source); |
| 140 | } |
| 141 | |
| 142 | const serverPath = `${PLUGIN_ROOT}/src/server.ts`; |
| 143 | const indexPath = `${PLUGIN_ROOT}/src/index.ts`; |
no test coverage detected