/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {register} from './DevToolsCdtMcp.js';
// Side effect: install the facade (before React) and register the React tool
// group for chrome-devtools-mcp. Import this module before React.
if (
typeof window !== 'undefined' &&
typeof window.addEventListener === 'function' &&
typeof window.removeEventListener === 'function'
) {
register();
} else {
// eslint-disable-next-line react-internal/prod-error-codes
throw new Error(
'react-devtools-cdt-mcp/register must be imported in a browser-like ' +
'environment before React initializes. Use the root entry point for ' +
'side-effect-free access to register().',
);
}
export * from './DevToolsCdtMcp.js';