dillon1000/react
Commit
Browse files chore[react-devtools]: add global for native and use it to fork backend implementation (#30533)
Adding `__IS_NATIVE__` global, which will be used for forking backend implementation. Will only be set to `true` for `react-devtools-core` package, which is used by `react-native`. Ideally, we should name it `react-devtools-native`, and keep `react-devtools-core` as host-agnostic. With this change, the next release of `react-devtools-core` should append component stack as Error object, not as string, and should add `(<anonymous>)` suffix to component stack frames.
Changed paths9 files
First-parent comparison.eslintrc.js ModifiedM packages/react-devtools-core/webpack.backend.js ModifiedM packages/react-devtools-extensions/webpack.backend.js ModifiedM packages/react-devtools-extensions/webpack.config.js ModifiedM packages/react-devtools-inline/webpack.config.js ModifiedM packages/react-devtools-shared/src/backend/console.js ModifiedM packages/react-devtools-shared/src/backend/shared/DevToolsComponentStackFrame.js ModifiedM scripts/flow/react-devtools.js ModifiedM scripts/jest/devtools/setupEnv.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…