Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 6f9b7c5

Browse files
authored
remove unused CODY_APP esbuild config and entrypoint (#63438)
Cody App was removed in Dec 2023, and the `app/main.tsx` file has not existed for a long time. ## Test plan n/a
1 parent fc5ac01 commit 6f9b7c5

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

client/web/dev/esbuild/config.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import type * as esbuild from 'esbuild'
55

66
import { ROOT_PATH, STATIC_ASSETS_PATH } from '@sourcegraph/build-config'
77
import {
8-
stylePlugin,
9-
packageResolutionPlugin,
10-
monacoPlugin,
118
buildTimerPlugin,
9+
monacoPlugin,
10+
packageResolutionPlugin,
11+
stylePlugin,
1212
workerPlugin,
1313
} from '@sourcegraph/build-config/src/esbuild/plugins'
1414
import { MONACO_LANGUAGES_AND_FEATURES } from '@sourcegraph/build-config/src/monaco-editor'
@@ -23,12 +23,10 @@ import { WEB_BUILD_MANIFEST_FILENAME, webManifestBuilder } from './webmanifest'
2323
*/
2424
export function esbuildBuildOptions(ENVIRONMENT_CONFIG: EnvironmentConfig): esbuild.BuildOptions {
2525
return {
26-
entryPoints: ENVIRONMENT_CONFIG.CODY_APP
27-
? [path.join(ROOT_PATH, 'client/web/src/enterprise/app/main.tsx')]
28-
: [
29-
path.join(ROOT_PATH, 'client/web/src/enterprise/main.tsx'),
30-
path.join(ROOT_PATH, 'client/web/src/enterprise/embed/embedMain.tsx'),
31-
],
26+
entryPoints: [
27+
path.join(ROOT_PATH, 'client/web/src/enterprise/main.tsx'),
28+
path.join(ROOT_PATH, 'client/web/src/enterprise/embed/embedMain.tsx'),
29+
],
3230
bundle: true,
3331
minify: ENVIRONMENT_CONFIG.NODE_ENV === 'production',
3432
treeShaking: true,

client/web/dev/utils/environment-config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ export const ENVIRONMENT_CONFIG = {
6262
* ----------------------------------------
6363
*/
6464
SOURCEGRAPHDOTCOM_MODE: getEnvironmentBoolean('SOURCEGRAPHDOTCOM_MODE'),
65-
CODY_APP: getEnvironmentBoolean('CODY_APP'),
6665

6766
// Is reporting to Sentry enabled.
6867
ENABLE_SENTRY: getEnvironmentBoolean('ENABLE_SENTRY'),

0 commit comments

Comments
 (0)