Skip to content

[DevTools] Support hook names for inline and standalone targets #21983

Closed as not planned
@bvaughn

Description

@bvaughn

Named hooks is currently only enabled for DevTools browser extensions. This is because the source map parsing library ('source-map') requires a WASM bundle to be supplied at runtime, and DevTools currently loads that using a browser API (chrome.extension.getURL):

// $FlowFixMe
const wasmMappingsURL = chrome.extension.getURL('mappings.wasm');

Maybe we could refactor this so that non-browser targets copied the WASM from node_modules and bundled it along with the DevTools package? It would be nice to support this functionality for e.g. React Native (which uses react-devtools-core) and Code Sandbox (which uses react-devtools-inline).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions