(environment: Environment)
| 400 | |
| 401 | const sortedHotUpdatePluginsCache = new WeakMap<Environment, Plugin[]>() |
| 402 | function getSortedHotUpdatePlugins(environment: Environment): Plugin[] { |
| 403 | let sortedPlugins = sortedHotUpdatePluginsCache.get(environment) |
| 404 | if (!sortedPlugins) { |
| 405 | sortedPlugins = getSortedPluginsByHotUpdateHook(environment.plugins) |
| 406 | sortedHotUpdatePluginsCache.set(environment, sortedPlugins) |
| 407 | } |
| 408 | return sortedPlugins |
| 409 | } |
| 410 | |
| 411 | export async function handleHMRUpdate( |
| 412 | type: 'create' | 'delete' | 'update', |
no test coverage detected