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

refactor!: migrate from source-map to TraceMap #186

Merged
merged 1 commit into from Apr 20, 2022

Conversation

jridgewell
Copy link
Contributor

trace-mapping is faster, smaller, and lighter than the source-map package, and doesn't require WASM, manual memory management, or async/await to use.

Fixes #185.

@jridgewell jridgewell changed the base branch from trace-mapping to master April 20, 2022 02:16
@jridgewell jridgewell force-pushed the trace-mapping branch 3 times, most recently from aeb6477 to c4575c1 Compare April 20, 2022 03:43
[trace-mapping](https://github.com/jridgewell/trace-mapping) is faster, smaller, and lighter than the `source-map` package, and doesn't require WASM, manual memory management, or async/await to use.

Fixes istanbuljs#185.
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

awesome, thanks!

this.sourceMap.destroy()
this.sourceMap = undefined
}
this.sourceMap = undefined
Copy link
Member

Choose a reason for hiding this comment

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

is this needed now? destroy was added in #161, and I don't think it does much now? can keep the method around to avoid a breaking change I guess, but beyond that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, I'll open a second PR to address.

@bcoe bcoe changed the title Switch to TraceMap refactor!: migrate from source-map to TraceMap Apr 20, 2022
Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

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

Thank you for this @jridgewell, glad to see a drop in replacement 👍

@bcoe bcoe merged commit c39ac4c into istanbuljs:master Apr 20, 2022
@SimenB SimenB mentioned this pull request Apr 20, 2022
@SimenB
Copy link
Member

SimenB commented Apr 20, 2022

Yay! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace source-map with @jridgewell/trace-mapping
3 participants