constants.ts — react Source File
Architecture documentation for constants.ts, a typescript file in the react codebase. 1 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR dc3fd0be_e038_0596_3080_c93d9784f34e["constants.ts"] b402a0fc_00db_e86d_b1ea_ad4f8e9faaca["path"] dc3fd0be_e038_0596_3080_c93d9784f34e --> b402a0fc_00db_e86d_b1ea_ad4f8e9faaca 4d76833e_f078_3b83_e453_82ab13e17c43["fixture-utils.ts"] 4d76833e_f078_3b83_e453_82ab13e17c43 --> dc3fd0be_e038_0596_3080_c93d9784f34e 3c2dde8c_5e90_a277_13bd_39083b18cadb["runner-watch.ts"] 3c2dde8c_5e90_a277_13bd_39083b18cadb --> dc3fd0be_e038_0596_3080_c93d9784f34e 49c99dfe_ec8f_3cb7_769b_a3b735b82b82["runner-worker.ts"] 49c99dfe_ec8f_3cb7_769b_a3b735b82b82 --> dc3fd0be_e038_0596_3080_c93d9784f34e 1fd49604_fb16_2568_4971_9eca12fd6a73["runner.ts"] 1fd49604_fb16_2568_4971_9eca12fd6a73 --> dc3fd0be_e038_0596_3080_c93d9784f34e style dc3fd0be_e038_0596_3080_c93d9784f34e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* 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.
*/
import path from 'path';
export const PROJECT_ROOT = path.join(process.cwd(), '..', '..');
// We assume this is run from `babel-plugin-react-compiler`
export const BABEL_PLUGIN_ROOT = path.normalize(
path.join(PROJECT_ROOT, 'packages', 'babel-plugin-react-compiler'),
);
export const BABEL_PLUGIN_SRC = path.normalize(
path.join(BABEL_PLUGIN_ROOT, 'dist', 'index.js'),
);
export const PRINT_HIR_IMPORT = 'printFunctionWithOutlined';
export const PRINT_REACTIVE_IR_IMPORT = 'printReactiveFunction';
export const PARSE_CONFIG_PRAGMA_IMPORT = 'parseConfigPragmaForTests';
export const FIXTURES_PATH = path.join(
BABEL_PLUGIN_ROOT,
'src',
'__tests__',
'fixtures',
'compiler',
);
export const SNAPSHOT_EXTENSION = '.expect.md';
Domain
Dependencies
- path
Imported By
Source
Frequently Asked Questions
What does constants.ts do?
constants.ts is a source file in the react codebase, written in typescript. It belongs to the BabelCompiler domain.
What does constants.ts depend on?
constants.ts imports 1 module(s): path.
What files import constants.ts?
constants.ts is imported by 4 file(s): fixture-utils.ts, runner-watch.ts, runner-worker.ts, runner.ts.
Where is constants.ts in the architecture?
constants.ts is located at compiler/packages/snap/src/constants.ts (domain: BabelCompiler, directory: compiler/packages/snap/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free