Commit Graph

7 Commits

Author SHA1 Message Date
Quinn Slack
de613e92b6
use esbuild for client/web builds (#57365)
Use [esbuild](https://esbuild.github.io/) instead of Webpack for builds of `client/web`, for faster builds (dev and prod) and greater dev-prod parity. This PR completely removes all use of Webpack in this repository.

`client/web` is the last build target that still uses Webpack; all others have been recently migrated to esbuild. Most devs here have been using esbuild for local dev of `client/web` for the last 6-12 months anyway. The change here is that now our production builds will be built by esbuild.

All sg commands, integration/e2e tests, etc., continue to work as-is. The bundlesize report will take a while to stabilize because the new build products use different filenames.

## Benchmarks

Running `pnpm run generate && time pnpm -C client/web run task:gulp webBuild` and taking the `time` output from the last command:

- Webpack: 62.5s
- esbuild: 6.7s

Note: This understates esbuild's victory for 2 reasons: (1) because esbuild is building both the main and embed entrypoints, whereas Webpack only builds the main entrypoint in this benchmark) and (2) because a lot of it is in the fixed startup time of `gulp`; esbuild incremental rebuilds during local dev only take ~1s.

## Notes

We no longer use Babel to produce web builds (we use esbuild), so we don't need any Babel plugins that optimize the output or improve browser compatibility. Right now, Babel is only used by Jest (for tests) and by Bazel as an intermediate step.
2023-10-23 10:59:06 -07:00
GitStart-SourceGraph
2729f21766
[SG-46115] - Merge the search-ui package into the branded package (#46197)
* chore: merge search-ui package into branded package
2023-01-11 18:27:19 +01:00
Valery Bugakov
5c6bbdcbb0
web: remove eslint-plugin-sourcegraph references (#35990) 2022-05-25 04:06:56 +00:00
TJ Kandala
ed2af423d7
web: add new packages to client readme (#32678) 2022-03-16 11:29:03 -04:00
Vova Kulikov
7dfc4416f2
Add Code Insights independent MVP (#19600)
* Add sandboxes directory for MVPs

* Change code insights imports in consumers

* Add new API context approach for mocking data in MVP
2021-04-14 13:04:19 +03:00
Valery Bugakov
7cf15290a2
web: moved Storybook config into a new package (#19569)
* web: moved Storybook config into a new package

* web: added storybook package to client/README

* web: checkin @types/terser-webpack-plugin

* web: yarn deduplicate

* web: prettier

* web: yarn.lock carriage-return

* web: yarn deduplicate

* web: removed redundant eslint command

* web: restored manager-head.html

* web: removed @storybook/core-common dependency for now

* web: moved cover-storybook back to root package.json

* web: updated stories glob

* web: fixed babel-plugin-istanbul cwd

* web: added storybook workspace to exclude list in nyc config

* web: removed redundant change
2021-04-08 17:16:26 +08:00
Valery Bugakov
179498b257
web: flatten frontend packages inside of the client folder (#19378)
* web: flattened frontend packages inside of the client folder

* web: please prettier 🙏

* web: reverted redundant changes

* web: reverted redundant whitespace changes

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* Update client/README.md

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>

* web: updated client/README

* Update client/README.md

Co-authored-by: Tom Ross <tom@umpox.com>

* web: changed licenses to Apache-2.0 for frontend packages

* web: reverted redudant change

* web: updated client/README

* web: added issue #

* web: added issue #

Co-authored-by: Patrick Dubroy <patrick@sourcegraph.com>
Co-authored-by: Tom Ross <tom@umpox.com>
2021-03-26 15:35:26 +08:00