stable

Clone or download

Read-only

Inherit configuration centrally for vite

Part of request #19287: Make internal libs "tree-shakeable" How to test: - No functional change expected. - CI build should pass. All libs built with Vite should inherit some centrally-defined configuration. It will allow us to do some global optimization without having to change every configuration, just like we did with Webpack-configurator. Now that we can define configuration in TypeScript, we can forbid configuration options that are overridden centrally, which lets us deduplicate them. Change-Id: I1777793345b54806e0f088cee8fade01d8b05ca8

Modified Files

Name
M src/scripts/lib/ckeditor-image-upload/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/date-helper/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/filter-table/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/gettext/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/html-escaper/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/list-picker/vite.config.ts +4 −3 Go to diff View file
M src/scripts/lib/mention/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/tlp-fetch/vite.config.ts +1 −2 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/vite.config.ts +1 −2 Go to diff View file
A tools/utils/scripts/vite-configurator.ts +38 −0 Go to diff View file