Skip to content

less should be a peer dependency #352

@rjgotten

Description

@rjgotten

less is currently registered as a dependency when it should be a peerDependency:

https://github.com/webpack-contrib/less-loader/blob/73740a89aef0748e27657a06b80b327c90b6f2b4/package.json#L45

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions