-
-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
In development, lineNumber for the __source prop provided by babel-plugin-transform-react-jsx-source is wrong.
I have solved this issue locally and I can submit a pr for this issue.
Reproduction
https://stackblitz.com/edit/vitejs-vite-nje3zq?file=src%2FApp.tsx&terminal=dev
Steps to reproduce
Wait for the project to run automatically to see the requests from App.tsx
System Info
System:
OS: macOS 14.0
CPU: (12) arm64 Apple M2 Pro
Memory: 3.39 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.1/bin/yarn
npm: 9.6.2 - ~/.nvm/versions/node/v16.19.1/bin/npm
pnpm: 8.6.11 - ~/.nvm/versions/node/v16.19.1/bin/pnpm
Browsers:
Chrome: 117.0.5938.132
Safari: 17.0
npmPackages:
@vitejs/plugin-legacy: ^4.0.2 => 4.1.1
@vitejs/plugin-react: ^4.0.1 => 4.1.0
vite: ^4.3.9 => 4.4.11
Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
cimak
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working