-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
less should be a peer dependency #352
Comments
Sorry, we can't put it in |
No, it is not acceptable. less should simply not be provided out of the box. https://webpack.js.org/contribute/writing-a-loader/#peer-dependencies babel-loader doesn't provide Babel out of the box. And it shouldn't start doing so now. |
@rjgotten Okay, I can implement the
We want to improve 0CJS and reduce complex of configuraions. |
That's actually even more flexible. 👍 |
Yep, in my TODO |
less
is currently registered as adependency
when it should be apeerDependency
:less-loader/package.json
Line 45 in 73740a8
Locking it as a dependency means users are not free to pick their own minimum version even though
less-loader
is API-compatible.This right now creates a big problem for users that process any non-trivially sized stylesheet collection, as Less versions 3.10+ have hugely increased memory consumption after the codebase was converted to ES classes and is now being transpiled (first with Babel, now with TypeScript) down to ES5.
Seeing 500+ MB memory usage for compiling a single stylesheet is not out of the ordinary.
The text was updated successfully, but these errors were encountered: