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

fix: no russian nesting doll #1934

Merged
merged 7 commits into from
Jun 24, 2024
Merged

fix: no russian nesting doll #1934

merged 7 commits into from
Jun 24, 2024

Conversation

shineli1984
Copy link
Collaborator

@shineli1984 shineli1984 commented Jun 22, 2024

Summary

Make esm module not replicating each other as much as possible.
The size of this approach is ~31 MB vs 37.8MB on npm

Detail and impact of the change

Changed

Group esm package inputs into a rollup config so that roll up can reason about their relationship.

@shineli1984 shineli1984 marked this pull request as ready for review June 23, 2024 22:41
@shineli1984 shineli1984 requested review from a team as code owners June 23, 2024 22:41
@zaidarain1
Copy link
Contributor

The image below is the node modules install folder when installing the sdk. We have some extra stuff we can remove to reduce the size even more when bundling with rollup. For eg, we could remove the src folders of each and the sdk scripts folder, as well as some of the other files in the root of the repo that are not needed. Worth the effort? Can save another half to one mb maybe.

image

sdk/rollup.config.js Outdated Show resolved Hide resolved
@shineli1984 shineli1984 added this pull request to the merge queue Jun 24, 2024
Merged via the queue into main with commit b71e361 Jun 24, 2024
12 checks passed
@shineli1984 shineli1984 deleted the no-russian-nesting-doll branch June 24, 2024 02:35
shineli1984 added a commit that referenced this pull request Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants