-
-
Notifications
You must be signed in to change notification settings - Fork 245
Support for create-react-app, typed css-modules and some other stuff... #25
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
Comments
Working together always a good thing 💟 |
Thank you for your work, I really appreciate that :) The results are:
We use 2 processes and it gives us ~4 seconds speed-up on incremental build I think your plugin will be better for medium-size projects, mine for bigger projects :) I very like customization of formatters - it would be good to add this to Also we could add |
@zinserjan would you be up for forking and sending a PR with the error / warning formatting changes in? Since you raised this initial issue the project has moved on somewhat; it's now written in TypeScript and I think the As @piotr-oles says:
So it would be good to get some of your work contributed to the plugin where we there is common ground 🌷 |
Yeah, good job!
Whats wrong with #31? (Never tried it)
Yep, but #36 needs to be resolved before this is usable for me. This works already with my plugin. |
I close the issue due to no activity :) |
Thank you for your work on this plugin. This approach improves webpack build times immense, especially incremental times are a lot faster (even in blocking mode).
But there are some issues at the moment that keeps us from using this plugin in the typescript fork of CRA:
-> watch mode needs to block webpack compilation until type checking is done
Additionally to these, I would also like to see support for typed css modules. The main issue here is that the type checking can only be done after the css files were processed cause type definitions for css files will be created on the fly.
I tried to fork this plugin and fix these „issues“. Adding the blocking of the emit phase back in watch mode was quite easy, but adding support for typed css modules was more complex. That’s why I started to work on a POC for this and ended up with a new plugin, written in TypeScript and tested by Jest.
The approach is the same like your plugin, but there are some differences:
I made some performance comparisons with your plugin (modified to block ) vs. my plugin and your plugin was on the initial built around 10% faster but on incremental builds around 30% slower. But this was on a quite small project. Unfortunately I don’t have a bigger project to test the impact of the blocking mode, the lack of multiple processes and the delayed start of type checking.
@piotr-oles
It would be awesome if you can provide some statics when the multi process starts to make sense. And it would be even more great, when you could find the time to compare it with my plugin. I pushed my changes for the blocking mode to my fork of this plugin.
Regardless of the results, I think it would be good to join forces to get something that works for everyone and is also as fast as possible :)
The text was updated successfully, but these errors were encountered: