-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Non-blocking linting option #33
Comments
I'm currently using When I set From the sound of this issue, it seems that this is not a feature. Is such a thing on the roadmap? Right now in |
It's currently not blocking. With or without threads turned on. |
@jsg2021 Are you sure? For me, webpack dev server blocks updates and hot reloads until the linting completes after a watched file has changed. Ideally during development the linting should happen in the background without blocking the webpack build. IIRC there's a typescript loader that works like this. |
Sorry, I was responding with the definition of classical "blocking"... and it is non-blocking in that sense... execution continues on the main thread while the linter runs in parallel. Webpack is waiting on all async parts to complete the report. Which is the blocking you mean. |
I'm curious is there a reason why the |
@decademoon as of 2.5.0 it is fully blocking. Turn on threads and rollback to 2.4.x... |
Can confirm, 2.4 is much faster with threads on. I'd suggest reverting whatever was introduced in 2.5. For comparison on https://github.com/tgstation/tgstation/tree/master/tgui:
This was performed on Ryzen 2700X. |
@stylemistake |
@elisherer |
Feature Proposal
I suggest to add a boolean option
nonBlocking
(defaultfalse
).If turned on, after each code change (while "watching") the linting process will be forked to not interfere with the build process.
(Maybe can tap on the last part of the build process, but still be on another thread)
linting warnings/errors will be shown on console. Not sure it can be shown on the browser console because webpack might not know something happened (maybe someone here knows better).
Feature Use Case
Probably a development only feature:
emitWarning: true
so we don't expect the build to fail anyway.WDYT?
The text was updated successfully, but these errors were encountered: