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

Generate names field for identifiers to get correct names mappings #3658

Merged
merged 1 commit into from Aug 16, 2016

Conversation

sebmck
Copy link
Contributor

@sebmck sebmck commented Aug 15, 2016

This allows things like name mangling to retain their original source location and allows debuggers to do realiasing etc.

@@ -34,7 +34,7 @@ export default class SourceMap {
* values to insert a mapping to nothing.
*/

mark(generatedLine: number, generatedColumn: number, line: number, column: number, filename: ?string) {
mark(generatedLine: number, generatedColumn: number, line: number, column: number, identifierName: ?string, filename: ?string) {
Copy link
Member

Choose a reason for hiding this comment

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

Getting max-len error here (do we still want this on), I'd be ok with removing as well)

@hzoo
Copy link
Member

hzoo commented Aug 15, 2016

Very cool, maybe a test for the sourcemap https://github.com/babel/babel/blob/master/packages/babel-generator/test/index.js if that's straightforward

@hzoo hzoo added the PR: New Feature 🚀 A type of pull request used for our changelog categories label Aug 15, 2016
@sebmck sebmck force-pushed the identifier-name branch 2 times, most recently from 752d829 to ee83dc1 Compare August 16, 2016 14:33
@hzoo
Copy link
Member

hzoo commented Aug 16, 2016

👍

@codecov-io
Copy link

Current coverage is 89.69% (diff: 100%)

Merging #3658 into master will increase coverage by 1.48%

@@             master      #3658   diff @@
==========================================
  Files           191        191           
  Lines         13582      17452   +3870   
  Methods        1423       2063    +640   
  Messages          0          0           
  Branches       3127       4739   +1612   
==========================================
+ Hits          11981      15654   +3673   
- Misses         1601       1798    +197   
  Partials          0          0           

Powered by Codecov. Last update 2aaee8b...cc52e8b

@hzoo hzoo merged commit 4a19661 into master Aug 16, 2016
@hzoo hzoo deleted the identifier-name branch August 16, 2016 17:43
@hzoo hzoo added this to the Next Minor milestone Aug 16, 2016
Timer added a commit to Timer/source-list-map that referenced this pull request Dec 1, 2016
Timer added a commit to Timer/source-list-map that referenced this pull request Dec 1, 2016
@hzoo
Copy link
Member

hzoo commented Dec 2, 2016

Caused an issue with webpack sourcemaps but was fixed - webpack/source-list-map#2

@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants