Skip to content

Commit

Permalink
fix(plugin-react): avoid mangling the sourcemaps of virtual modules (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Oct 26, 2021
1 parent d2fc1a1 commit 8556ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/plugin-react/src/index.ts
Expand Up @@ -199,6 +199,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
ast: !isReasonReact,
root: projectRoot,
filename: id,
sourceFileName: id,
parserOpts: {
...opts.babel?.parserOpts,
sourceType: 'module',
Expand Down

2 comments on commit 8556ffe

@mattixittam
Copy link

Choose a reason for hiding this comment

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

Any idea when this will be released? This is quite annoying on an underpowered laptop with a large codebase :)

@patak-dev
Copy link
Member

Choose a reason for hiding this comment

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

This has been released in plugin-react@1.0.7

Please sign in to comment.