Skip to content

Commit

Permalink
Move shared utilities into backend/shared
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sebmarkbage committed Jul 27, 2024
1 parent 7e87569 commit d5ba547
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-devtools-shared/src/backend/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
supportsOwnerStacks,
supportsNativeConsoleTasks,
} from './fiber/DevToolsFiberComponentStack';
import {formatOwnerStack} from './DevToolsOwnerStack';
import {formatOwnerStack} from './shared/DevToolsOwnerStack';
import {castBool, castBrowserTheme} from '../utils';

const OVERRIDE_CONSOLE_METHODS = ['error', 'trace', 'warn'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
describeDebugInfoFrame,
} from '../DevToolsComponentStackFrame';

import {formatOwnerStack} from '../DevToolsOwnerStack';
import {formatOwnerStack} from '../shared/DevToolsOwnerStack';

export function describeFiber(
workTagMap: WorkTagMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// while still maintaining support for multiple renderer versions
// (which use different values for ReactTypeOfWork).

import type {CurrentDispatcherRef} from './types';
import type {CurrentDispatcherRef} from '../types';

// The shared console patching code is DEV-only.
// We can't use it since DevTools only ships production builds.
Expand Down

0 comments on commit d5ba547

Please sign in to comment.