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

Support x_google_ignoreList in source map infra #973

Closed
wants to merge 1 commit into from

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Apr 24, 2023

Summary:
Changelog:

  • [Feature]: Basic support for x_google_ignoreList in metro-source-map and metro-symbolicate

Enables Metro's source map infrastructure to produce and consume the x_google_ignoreList field, documented here.

An upcoming diff will use this infra support to add ignore lists to Metro's source maps by default.

The changes here include:

  • An option to mark source files as ignored in metro-source-map's Generator (used by the serializer).
  • Preserving ignore lists in composeSourceMaps. composeSourceMaps is used by React Native in OSS to generate source maps for Hermes bytecode compiled from Metro bundles.
  • Including an isIgnored field in source locations returned via the metro-symbolicate API. metro-symbolicate is the reference implementation of symbolication based on Metro's source maps.

Differential Revision: D43554204

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Apr 24, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D43554204

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D43554204

motiz88 added a commit to motiz88/metro that referenced this pull request Apr 25, 2023
Summary:
Pull Request resolved: facebook#973

Changelog:
* **[Feature]**: Basic support for `x_google_ignoreList` in `metro-source-map` and `metro-symbolicate`

Enables Metro's source map infrastructure to produce and consume the `x_google_ignoreList` field, documented [here](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).

An upcoming diff will use this infra support to add ignore lists to Metro's source maps by default.

The changes here include:

* An option to mark source files as ignored in `metro-source-map`'s `Generator` (used by the serializer).
* Preserving ignore lists in `composeSourceMaps`. `composeSourceMaps` is used by React Native in [OSS](https://github.com/facebook/react-native/blob/c1304d938da9cd5016da0bded4d618c42efbd7e4/scripts/compose-source-maps.js#L13) to generate source maps for Hermes bytecode compiled from Metro bundles.
* Including an `isIgnored` field in source locations returned via the `metro-symbolicate` API. `metro-symbolicate` is the reference implementation of symbolication based on Metro's source maps.

Reviewed By: GijsWeterings

Differential Revision: D43554204

fbshipit-source-id: f97255ec5272ad811e049c4db0c2ceca98dab3e2
Summary:
Pull Request resolved: facebook#973

Changelog:
* **[Feature]**: Basic support for `x_google_ignoreList` in `metro-source-map` and `metro-symbolicate`

Enables Metro's source map infrastructure to produce and consume the `x_google_ignoreList` field, documented [here](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension).

An upcoming diff will use this infra support to add ignore lists to Metro's source maps by default.

The changes here include:

* An option to mark source files as ignored in `metro-source-map`'s `Generator` (used by the serializer).
* Preserving ignore lists in `composeSourceMaps`. `composeSourceMaps` is used by React Native in [OSS](https://github.com/facebook/react-native/blob/c1304d938da9cd5016da0bded4d618c42efbd7e4/scripts/compose-source-maps.js#L13) to generate source maps for Hermes bytecode compiled from Metro bundles.
* Including an `isIgnored` field in source locations returned via the `metro-symbolicate` API. `metro-symbolicate` is the reference implementation of symbolication based on Metro's source maps.

Reviewed By: GijsWeterings

Differential Revision: D43554204

fbshipit-source-id: f49f65827ccb1d346eec192c81c53e39597025ab
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D43554204

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in d8ca3f2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants