dependents / dependents/node-dependency-tree
Why not supporting an object for webpackConfig parameter?
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 777
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Description
Now, webpackConfig parameter just supports the file path which is not convenient as an object. So Why not supporting an object for webpackConfig parameter just like the tsConfig parameter?
example:
```js
const tree = dependencyTree({
filename: `xxx/index.tsx`,
directory: `xxx/src`,
filter: (path) => path.indexOf("node_modules") === -1,
webpackConfig: {
resolve: {
extensions: [".js", ".jsx", ".tsx", ".ts"],
},
}
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.