Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize rollup builds for 1 input producing multiple outputs #2157

Open
2 tasks
denyo opened this issue Nov 7, 2022 · 0 comments
Open
2 tasks

Optimize rollup builds for 1 input producing multiple outputs #2157

denyo opened this issue Nov 7, 2022 · 0 comments

Comments

@denyo
Copy link
Contributor

denyo commented Nov 7, 2022

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 (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.

Out of Scope

List topics that are not part of this task.

Notes

Bildschirmfoto 2022-11-07 um 11 02 53

Acceptance criteria

  • Criteria

Subtasks

  • Task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants