Skip to content
Source
Sign inSign up
TanStack/router

Fix: enable dev server back in test mode #5181

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

Showing 1 changed file with 0 additions and 8 deletions.

x
0 of 1 viewed, 1 left
0 additions and 8 deletionspackages/start-plugin-core/src/dev-server-plugin/plugin.tsModified
View file
@@ -12,21 +12,13 @@
}: {
getConfig: () => { startConfig: TanStackStartOutputConfig }
}): PluginOption {
- let isTest = false
​
let injectedHeadScripts: string | undefined
​
return [
name: 'tanstack-start-core:dev-server',
- config(_userConfig, { mode }) {
- isTest = isTest ? isTest : mode === 'test'
- },
async configureServer(viteDevServer) {
- if (isTest) {
- return
- }
-​
// Extract the scripts that Vite plugins would inject into the initial HTML
const templateHtml = `<html><head></head><body></body></html>`
const transformedHtml = await viteDevServer.transformIndexHtml(