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

👷[build] allow sideEffects optimization on core #417

Merged
merged 1 commit into from
Jun 4, 2020

Conversation

bcaudan
Copy link
Contributor

@bcaudan bcaudan commented Jun 4, 2020

Motivation

https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free
core package should not contain side effect, a few functions can then be safely removed while building target files

Changes

mark core package as side effect free

Testing

automated tests

  • rum: 44k -> 42k
  • logs: 30k -> 29k

I have gone over the contributing documentation.

@bcaudan bcaudan requested a review from a team as a code owner June 4, 2020 14:00
@bcaudan bcaudan merged commit 94dc5a4 into master Jun 4, 2020
@bcaudan bcaudan deleted the bcaudan/side-effect branch June 4, 2020 14:27
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.

3 participants