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: improve build to reduce bundle size #2430

Merged
merged 4 commits into from Jul 20, 2022

Conversation

HellWolf93
Copy link
Collaborator

fix: #1339

Changes proposed in this PR:

  • Improved build process: now we build in two modes, one using ES6 modules (import/export) and one with CommonJS modules (require).

  • Modified package.json to allow bundlers to be capable of Tree Shake the library.

  • I have followed (at least) the PR section of the contributing guide.

@commit-lint
Copy link

commit-lint bot commented Jul 20, 2022

Bug Fixes

  • improve build to reduce bundle size (849df84)
  • remove comments from build script (2341354)

Chore

  • add esm folder to clean command (7e92676)

Contributors

HellWolf93, LeandroTorresSicilia

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@github-actions
Copy link

github-actions bot commented Jul 20, 2022

Visit the preview URL for this PR (updated for commit c10f293):

https://react-rainbow--pr2430-reduce-bundle-size-reltp980.web.app

(expires Wed, 27 Jul 2022 17:29:00 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@codeclimate
Copy link

codeclimate bot commented Jul 20, 2022

Code Climate has analyzed commit 2341354 and detected 0 issues on this pull request.

View more on Code Climate.

@LeandroTorresSicilia LeandroTorresSicilia merged commit 579743f into master Jul 20, 2022
@LeandroTorresSicilia LeandroTorresSicilia deleted the reduce-bundle-size branch July 20, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: reduce the size bundle of the library
2 participants