Skip to content

Commit

Permalink
fix: format
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Oct 18, 2024
1 parent 5e7d5c5 commit 1d115b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vite/src/node/plugins/oxc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ export function oxcPlugin(config: ResolvedConfig): Plugin {
async transform(code, id) {
if (filter(id) || filter(cleanUrl(id))) {
// disable refresh at ssr
if (this.environment.config.consumer === 'server' && oxcTransformOptions.jsx?.refresh) {
if (
this.environment.config.consumer === 'server' &&
oxcTransformOptions.jsx?.refresh
) {
oxcTransformOptions.jsx.refresh = false
}
if (
Expand Down

0 comments on commit 1d115b2

Please sign in to comment.