Skip to content

fix: Do not rollup vendor imports into package

Mike Greiling requested to merge mg-preserve-vendor-imports into master

Prevent large libraries like echarts from being included in the rollup output. Instead let the library's consumer handle their inclusion.

Before:
(from webpack-bundle-analyzer in gitlab-ce)
before

After:
after

Note: this won't, by itself, reduce the bundle size within gitlab-ce, but it will show more transparently what is taking up space in the bundles by not obfuscating gitlab-ui's dependencies within one giant index.js blob.

Edited by Mike Greiling

Merge request reports