Skip to content

Commit d5ba547

Browse files
committed
Move shared utilities into backend/shared
Clears the root folder of the backend a bit to clarify which parts are entry points. This follows from these same files being in packages/shared/ since they're shared by multiple renderers.
1 parent 7e87569 commit d5ba547

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

packages/react-devtools-shared/src/backend/console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
supportsOwnerStacks,
3333
supportsNativeConsoleTasks,
3434
} from './fiber/DevToolsFiberComponentStack';
35-
import {formatOwnerStack} from './DevToolsOwnerStack';
35+
import {formatOwnerStack} from './shared/DevToolsOwnerStack';
3636
import {castBool, castBrowserTheme} from '../utils';
3737

3838
const OVERRIDE_CONSOLE_METHODS = ['error', 'trace', 'warn'];

packages/react-devtools-shared/src/backend/fiber/DevToolsFiberComponentStack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
describeDebugInfoFrame,
2525
} from '../DevToolsComponentStackFrame';
2626

27-
import {formatOwnerStack} from '../DevToolsOwnerStack';
27+
import {formatOwnerStack} from '../shared/DevToolsOwnerStack';
2828

2929
export function describeFiber(
3030
workTagMap: WorkTagMap,

packages/react-devtools-shared/src/backend/DevToolsComponentStackFrame.js renamed to packages/react-devtools-shared/src/backend/shared/DevToolsComponentStackFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// while still maintaining support for multiple renderer versions
1313
// (which use different values for ReactTypeOfWork).
1414

15-
import type {CurrentDispatcherRef} from './types';
15+
import type {CurrentDispatcherRef} from '../types';
1616

1717
// The shared console patching code is DEV-only.
1818
// We can't use it since DevTools only ships production builds.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)