(opts: { platform: string; flavor: string; verbose: boolean })
| 2 | import { hmrWebSocketVue, hmrWebSocketAngular, hmrWebSocketSolid, hmrWebSocketTypescript } from './websocket.js'; |
| 3 | |
| 4 | export function getHMRPlugins(opts: { platform: string; flavor: string; verbose: boolean }) { |
| 5 | const plugins = [nsHmrClientVitePlugin(opts)]; |
| 6 | switch (opts.flavor) { |
| 7 | case 'vue': |
| 8 | plugins.push(hmrWebSocketVue(opts)); |
| 9 | break; |
| 10 | case 'react': |
| 11 | break; |
| 12 | case 'angular': |
| 13 | plugins.push(hmrWebSocketAngular(opts)); |
| 14 | break; |
| 15 | case 'typescript': |
| 16 | plugins.push(hmrWebSocketTypescript(opts)); |
| 17 | break; |
| 18 | case 'solid': |
| 19 | plugins.push(hmrWebSocketSolid(opts)); |
| 20 | break; |
| 21 | } |
| 22 | return plugins; |
| 23 | } |
no test coverage detected