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

feat: mark as side effect free to enable efficient tree-shaking #423

Merged
merged 1 commit into from
May 6, 2020

Conversation

ktsn
Copy link
Member

@ktsn ktsn commented May 6, 2020

Adding sideEffects: false helps webpack to tree-shake the user code includes vue-class-component.
https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free

@ktsn ktsn merged commit 70ed762 into master May 6, 2020
@ktsn ktsn deleted the side-effect branch May 6, 2020 07:19
nevilm-lt pushed a commit to nevilm-lt/vue-class-component that referenced this pull request Apr 22, 2022
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.

1 participant