Skip to content

Commit

Permalink
chore: fix wrapper typo (#4433)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan authored Jan 26, 2025
1 parent b45c195 commit 59996c7
Showing 1 changed file with 5 additions and 5 deletions.
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;
}
}

1 comment on commit 59996c7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ran ecosystem CI: Open

suite result
modernjs ❌ failure
plugins ✅ success
rspress ✅ success
rslib ✅ success
examples ✅ success

Please sign in to comment.