Skip to content

Commit

Permalink
App: fix startup when using bazel (#51061)
Browse files Browse the repository at this point in the history
The app shell entry point only needs to be added when we are building the Sourcegraph app.
  • Loading branch information
Chris Warwick committed Apr 24, 2023
1 parent afc1b03 commit 52a6cc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/web/dev/esbuild/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export const BUILD_OPTIONS: esbuild.BuildOptions = {
: isEnterpriseBuild
? path.join(ROOT_PATH, 'client/web/src/enterprise/main.tsx')
: path.join(ROOT_PATH, 'client/web/src/main.tsx'),
'scripts/shell': isSourcegraphApp ? path.join(ROOT_PATH, 'client/web/src/enterprise/app-shell.tsx') : undefined,
...(isSourcegraphApp
? { 'scripts/shell': path.join(ROOT_PATH, 'client/web/src/enterprise/app-shell.tsx') }
: {}),
},
bundle: true,
minify: IS_PRODUCTION,
Expand Down

0 comments on commit 52a6cc3

Please sign in to comment.