问题描述:

I'd like to write a (pre?)loader/plugin for webpack that is called for all resolved packages and returns an array of package.json files with their absolute path as a result.

I could use read-installed(https://github.com/npm/read-installed) but I'd like to include only packages that are resolved by webpack during its resolving.

Is this possible? Or is a webpack loader/plugin not the right tool for that?

相关阅读:
Top