Skip to content

Commit

Permalink
fix(plugin-react): remove querystring from sourcemap filename (#5760)
Browse files Browse the repository at this point in the history
  • Loading branch information
frandiox committed Nov 19, 2021
1 parent 59471b1 commit d93a9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
ast: !isReasonReact,
root: projectRoot,
filename: id,
sourceFileName: id,
sourceFileName: filepath,
parserOpts: {
...opts.babel?.parserOpts,
sourceType: 'module',
Expand Down

0 comments on commit d93a9fa

Please sign in to comment.