-
-
Notifications
You must be signed in to change notification settings - Fork 866
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
Tree-shaking is not happening #780
Comments
Updated with an example repo |
@jaredpalmer confirmed this is planned for V4 and is not a bug, just not implemented. https://spectrum.chat/notifications?thread=68062cb8-a254-43c2-9330-69e537a9753d |
Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal. |
This is fixed in v4 |
@krazyjakee don't you mean v3? |
@mrmartineau sorry getting ahead of myself |
The webpack plugin "ModuleConcatenationPlugin" doesn't seem to run in
production
mode.Any
import { x } from 'x'
adds the entire modulex
to the production bundle.What could be causing this?
Here is a minimal example of this issue in action: https://github.com/krazyjakee/Razzle-Sandbox/blob/tree-shaking/src/App.js#L2
You can see the entire date-fns package is imported to the bundle when running
npm run build
.The text was updated successfully, but these errors were encountered: