当前位置: 动力学知识库 > 问答 > 编程问答 >

node.js - Can a webpack loader/plugin get all resolved packages?

问题描述:

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?

分享给朋友:
您可能感兴趣的文章:
随机阅读: