In our source code, we have imports that do not have paths, and that are not node-modules. For example:
import 'special-library.lib.js'
Currently, when I try to get the dependency tree, this file shows up in the nonExistent array and is not resolved.
These libfiles are common library style files we use in our app that we don't want in node_modules. This is made possible by webpack's config.resolve.modules option:
resolve: {
modules: {
'node_modules',
'_libs/' //this tells webpack to search in _libs for imports
}
}
How can I get dependency-tree to understand my extra webpack modules?
In our source code, we have imports that do not have paths, and that are not
node-modules. For example:Currently, when I try to get the dependency tree, this file shows up in the
nonExistentarray and is not resolved.These
libfiles are common library style files we use in our app that we don't want innode_modules. This is made possible by webpack'sconfig.resolve.modulesoption:How can I get
dependency-treeto understand my extra webpack modules?