Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/core/src/server/compilerDevMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class CompilerDevMiddleware {
base && base !== '/' ? stripBase(prefix, base) : prefix,
);

const warp = async (
const wrapper = async (
req: IncomingMessage,
res: ServerResponse,
next: NextFunction,
Expand All @@ -224,10 +224,10 @@ export class CompilerDevMiddleware {
}
};

warp.close = middleware.close;
wrapper.close = middleware.close;

// warp rsbuild-dev-middleware to handle html file(without publicPath)
// maybe we should serve html file by sirv
return warp;
// wrap rsbuild-dev-middleware to handle HTML file(without publicPath)
// maybe we should serve HTML file by sirv
return wrapper;
}
}
Loading