Skip to content

Commit f63eabb

Browse files
committed
format
1 parent 73cd223 commit f63eabb

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/start/src/config/dev-server.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export function devServer(): Array<PluginOption> {
7878
headers: {
7979
"Content-Type": "application/json",
8080
},
81-
}
82-
)
81+
},
82+
),
8383
);
8484
}
8585

@@ -95,7 +95,7 @@ export function devServer(): Array<PluginOption> {
9595
<script type="module">
9696
import { ErrorOverlay } from '/@vite/client'
9797
document.body.appendChild(new ErrorOverlay(${JSON.stringify(
98-
prepareError(req, e)
98+
prepareError(req, e),
9999
).replace(/</g, "\\u003c")}))
100100
</script>
101101
</head>
@@ -106,8 +106,8 @@ export function devServer(): Array<PluginOption> {
106106
{
107107
status: 500,
108108
headers: { "Content-Type": "text/html" },
109-
}
110-
)
109+
},
110+
),
111111
);
112112
}
113113
});
@@ -132,7 +132,7 @@ function removeHtmlMiddlewares(server: ViteDevServer) {
132132
if (
133133
html_middlewares.includes(
134134
// @ts-expect-error
135-
server.middlewares.stack[i].handle.name
135+
server.middlewares.stack[i].handle.name,
136136
)
137137
) {
138138
server.middlewares.stack.splice(i, 1);

packages/start/src/config/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
188188
envName: VITE_ENVIRONMENTS.client,
189189
getRuntimeCode: () =>
190190
`import { createServerReference } from "${normalizePath(
191-
fileURLToPath(new URL("../server/server-runtime", import.meta.url))
191+
fileURLToPath(new URL("../server/server-runtime", import.meta.url)),
192192
)}"`,
193193
replacer: opts => `createServerReference('${opts.functionId}')`,
194194
},
@@ -197,7 +197,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
197197
envName: VITE_ENVIRONMENTS.server,
198198
getRuntimeCode: () =>
199199
`import { createServerReference } from '${normalizePath(
200-
fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url))
200+
fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url)),
201201
)}'`,
202202
replacer: opts => `createServerReference(${opts.fn}, '${opts.functionId}')`,
203203
},
@@ -206,7 +206,7 @@ export function solidStart(options?: SolidStartOptions): Array<PluginOption> {
206206
envName: VITE_ENVIRONMENTS.server,
207207
getRuntimeCode: () =>
208208
`import { createServerReference } from '${normalizePath(
209-
fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url))
209+
fileURLToPath(new URL("../server/server-fns-runtime", import.meta.url)),
210210
)}'`,
211211
replacer: opts => `createServerReference(${opts.fn}, '${opts.functionId}')`,
212212
},

0 commit comments

Comments
 (0)