Skip to content

Commit fa40dbc

Browse files
committed
fix: return transformed content as moduleType: 'js'
1 parent a248bb1 commit fa40dbc

File tree

1 file changed

+1
-0
lines changed
  • packages/vite/src/node/plugins

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ export function oxcPlugin(config: ResolvedConfig): Plugin {
273273
return {
274274
code: result.code,
275275
map: result.map,
276+
moduleType: 'js',
276277
}
277278
}
278279
},

0 commit comments

Comments
 (0)