Support webpack's config.resolve.modules paths
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- tooling
Research direction
Start by reproducing the reported dependency-tree case with the special-library.lib.js import and a webpack-style resolve.modules value containing _libs/. Trace the dependency resolution entry point, then verify that imports found through the extra module path are resolved rather than placed in nonExistent.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- JavaScript
- Stars
- 776
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dependents/node-dependency-tree
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
question
Difficulty 3/5 1-2 days Newbie friendliness 25/100
-
question
Difficulty 3/5 1-2 days Newbie friendliness 25/100
dependents/node-dependency-tree#152 · 2 comments ·
-
Why is precinctOptions.includeCore always false?May be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
All issues in dependents/node-dependency-tree
Similar issues
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
cli: `studio --request <missing file>` answers with a raw ENOENT/EISDIR instead of a clear errorOpenbug good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
laaielichter/Ai-edit-studio#81 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
jasonacox/pypowerwall#472 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sebastienros/jint#4531 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days