loader-utils
loader-utils copied to clipboard
Feature request: stringify loader object
Hi there,
I am working on a loader that needs to compile an array of loaders and options into one string.
I've noticed that vue-loader
authors have implemented similar functionality in their code base: vue-loader/lib/loader.js.
I am wondering if this is something that could be part of loader-utils
since it could be a helpful function for other loaders as well?
I can create a PR with tests if there will be a need for this helper function.
I second this. Would you like to create a PR?
PR welcome
Now the config loaders
is moved to use
, maybe the name should be sth like stringifyUseEntries
, and assume the param to be UseEntry[]?
@ljqx we can discuss about name in a PR, feel free to send a PR