rspack icon indicating copy to clipboard operation
rspack copied to clipboard

Support `loaderContext.loadModule`

Open h-a-n-a opened this issue 2 years ago • 4 comments

What problem does this feature solve?

Resolves the given request to a module, applies all configured loaders and calls back with the generated source, the sourceMap and the module instance (usually an instance of NormalModule). Use this function if you need to know the source code of another module to generate the result.

https://webpack.js.org/api/loaders/#thisloadmodule

What does the proposed API of configuration look like?

See: https://webpack.js.org/api/loaders/#thisloadmodule

h-a-n-a avatar Jul 10 '23 08:07 h-a-n-a