-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Production mode minifies routerMiddleware of 'connected-react-router' as undefined #9159
Comments
I can't reproduce it with the instructions above. It would be great if you reduce your issue to a small reproducible example. Best put this example into a github repository together with instructions how to get to the problem. |
Hi @sokra, I've created a repo trying to describe the problem better, please check and tell me if you need more information: https://github.com/knightus/webpack-issue-9159 |
Thanks this helps |
fixed in 4.32.2 |
Bug report
What is the current behavior?
Production mode of webpack 4.32.0 cannot minify connected-react-router middleware properly, and produces
undefined
If the current behavior is a bug, please provide the steps to reproduce.
undefined
This is a large proprietary project so I'm not sure how to extract this to a sample repo yet. But here's some screenshots from Chrome debugger (unminified)
What is the expected behavior?
Webpack minifies this middleware successfully as a function.
Other relevant information:
webpack version: 4.32.0
Node.js version: 11.13.0
Operating System: Windows 10
Additional tools: yarn 1.16.0
The text was updated successfully, but these errors were encountered: