Skip to content

Commit 791ca1b

Browse files
committed
fixes
1 parent 41f6bc3 commit 791ca1b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/vite/src/node/plugins/wasm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const wasmHelper = async (opts = {}, url: string) => {
2929
if (typeof process !== 'undefined' && process.versions?.node) {
3030
const fs = await import('node:fs/promises')
3131
if (url.startsWith('/@fs/')) {
32-
url = url.slice(4)
32+
url = url.slice(5)
3333
} else if (url.startsWith('/')) {
3434
url = url.slice(1)
3535
}

playground/ssr-wasm/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function createServer(root = process.cwd(), hmrPort) {
3030
// use vite's connect instance as middleware
3131
app.use(vite.middlewares)
3232

33-
app.use('*all', async (req, res, next) => {
33+
app.use('*', async (req, res, next) => {
3434
try {
3535
const url = req.originalUrl
3636
const render = (await vite.ssrLoadModule('/src/app.js')).render

0 commit comments

Comments
 (0)