Extract the remaining Webpack config duplication into a separate workspace
Created by: gitstart-sourcegraph
Problem statement
Three client packages use Webpack as a build tool. Webpack configuration is different for each package, but parts of it should be consistent. Instead of updating the same part of the configuration in multiple places, we can extract them into a standalone client workspace to have one source of truth.
Refs
SourceGraph Issue GitStart ticket
Success criteria
- The remaining Webpack config duplication is extracted into the build-config package and reused from the in consumer packages.
- The remaining Webpack config duplication is imported to the consumer packages via Typescript references import:
import { getCacheConfig } from '@sourcegraph/build-config'