* Clears all caches, removes all HMR listeners, and resets source map support. * This method doesn't stop the HMR connection.
()
| 105 | * This method doesn't stop the HMR connection. |
| 106 | */ |
| 107 | public async close(): Promise<void> { |
| 108 | this.resetSourceMapSupport?.() |
| 109 | this.clearCache() |
| 110 | this.hmrClient = undefined |
| 111 | this.closed = true |
| 112 | await this.transport.disconnect?.() |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Returns `true` if the runtime has been closed by calling `close()` method. |
nothing calls this directly
no test coverage detected