Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sourcemap not mapping correct #10952

xianwei-lu opened this issue Jan 2, 2020 · 1 comment

sourcemap not mapping correct #10952

xianwei-lu opened this issue Jan 2, 2020 · 1 comment


Copy link

@xianwei-lu xianwei-lu commented Jan 2, 2020

Bug Report

sourcemap not mapping correct when using babel-loader

Current Behavior

project old-babel behavior


project test-project behavior


Input Code
there is my demo


package is an npm package
test-project is create by create-react-app
old-babel is create by myself

Expected behavior/code

I want to konw,how to configure project old-babel,that make sourcemap same with test-project, rather than sourcemap after babel
there is my config in demo



  • Babel version(s): [v7.1.1]
  • How you are using Babel: [loader]

Possible Solution

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.


This comment has been minimized.

Copy link

@babel-bot babel-bot commented Jan 2, 2020

Hey @xianwei-lu! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.