You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using rollup for building and bundling most packages that we release but also that we build in between, e.g. shared package which is used for tests or within our storefront. Since we need different output formats (primarily esm and cjs because umd is not treeshakable) we build and bundle everything twice. This obviously has high redundancy since the only difference is the final output format while everything else (e.g. typescript transpilation, dead code elimination, etc.) is done again.
Therefore we should adjust all rollup.config.js files that have repetitive inputs with different outputs to use a single input and producing multiple outputs.
This will save us time and energy locally during development but also in CI.
Scope
We are using rollup for building and bundling most packages that we release but also that we build in between, e.g.
shared
package which is used for tests or within our storefront. Since we need different output formats (primarilyesm
andcjs
becauseumd
is not treeshakable) we build and bundle everything twice. This obviously has high redundancy since the only difference is the final output format while everything else (e.g. typescript transpilation, dead code elimination, etc.) is done again.Therefore we should adjust all
rollup.config.js
files that have repetitive inputs with different outputs to use a single input and producing multiple outputs.This will save us time and energy locally during development but also in CI.
Out of Scope
List topics that are not part of this task.
Notes
Acceptance criteria
Subtasks
The text was updated successfully, but these errors were encountered: