Skip to content

Handle yarn instant search build and reduce bundle size

David O'Regan requested to merge yarn-build-rollup into master

A small MVC for:

This merge is the first of 3 merges designed as ~"feature::maintenance" for the Docs site 😄

Merge You are here
Fix build tools 🤘
Minify Client JavaScript TBA
Handle sidebar CSS TBA

This merge allows us to reduce the bundle size on pages using the gitlab/ui components:

Before After
Screenshot_2020-09-29_at_21.53.39 Screenshot_2020-09-29_at_21.41.36

And, allows us to leverage external libs correctly in the build such as instantsearch:

Screenshot_2020-09-29_at_21.40.51

Note

We still cannot import components via: import { GlLink } from '@gitlab/ui'; yet and need raw imports: import GlLink from '@gitlab/ui/dist/components/base/link/link';

This is due to the needing to handle SVG imports correctly and peer libs that gitlab/ui depends on which I have not found a solution for yet.

Closes #854 (closed) Closes #725 (closed)

Edited by David O'Regan

Merge request reports