We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59471b1 commit d93a9faCopy full SHA for d93a9fa
1 file changed
packages/plugin-react/src/index.ts
@@ -215,7 +215,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
215
ast: !isReasonReact,
216
root: projectRoot,
217
filename: id,
218
- sourceFileName: id,
+ sourceFileName: filepath,
219
parserOpts: {
220
...opts.babel?.parserOpts,
221
sourceType: 'module',
0 commit comments