Skip to content

fix: remove filename annotation in buildCodeFrameError#10539

Merged
nicolo-ribaudo merged 1 commit intobabel:masterfrom
JLHwung:fix-10531
Oct 14, 2019
Merged

fix: remove filename annotation in buildCodeFrameError#10539
nicolo-ribaudo merged 1 commit intobabel:masterfrom
JLHwung:fix-10531

Conversation

@JLHwung
Copy link
Copy Markdown
Contributor

@JLHwung JLHwung commented Oct 11, 2019

Q                       A
Fixed Issues? Fixes #10531
Patch: Bug Fix? Yes
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR we remove filename annotation on buildCodeFrameError because

  1. The transform phase in runSync will add filename annotation
  2. buildCodeFrameError is only used in the plugin visitors, which is executed in the transform phase.

This PR does not introduce breaking changes because both buildCodeFrameError and runSync are in babel-core.

@JLHwung JLHwung added PR: Bug Fix 🐛 A type of pull request used for our changelog categories pkg: core labels Oct 11, 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 pkg: core PR: Bug Fix 🐛 A type of pull request used for our changelog categories

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filename is duplicated for errors created by path.buildCodeFrameError in 7.6.3

3 participants