Skip to content
Source
Sign inSign up
TanStack/router

Fix: enable dev server back in test mode #4642

Closedluixo(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/4642/headopened

Showing 1 changed file with 0 additions and 11 deletions.

x
0 of 1 viewed, 1 left
0 additions and 11 deletionspackages/start-plugin-core/src/dev-server-plugin/plugin.tsModified
View file
@@ -10,20 +10,9 @@
​
export function devServerPlugin(): Plugin {
- // let config: UserConfig
- let isTest = false
-​
return {
name: 'start-dev-ssr-plugin',
- config(userConfig, { mode }) {
- // config = userConfig
- isTest = isTest ? isTest : mode === 'test'
- },
configureServer(viteDevServer) {
- if (isTest) {
- return
- }
-​
// upon server restart, reset the injected scripts
globalThis.TSS_INJECTED_HEAD_SCRIPTS = undefined
return () => {