Socket
Book a DemoInstallSign in
Socket

sinamfe-webpack-module_dependency

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sinamfe-webpack-module_dependency

获取工程依赖树以及相应版本

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
4
Created
Source

npm node deps tests

webpack-module_dependency

webpack 依赖树插件

作用

收集组件依赖关系,用于数据分析,组件依赖分析,反向查找依赖工程

用于前端工程中严格的多版本问题排重终止打包操作。

一些说明

一、 按照entry的dependencies递归查找 但是找dependencies时被扁平化了 例如 依赖关系: entry -> test-npm-module-react -> react @15.6.2 -> react @16.2.0

找entry的dependencies时,数组顺序 [ test-npm-module-react, react (@15.6.2), react (@16.2.0) ]

加了一层依赖深度的检测

二、 忽略了工程化本身的依赖 例如在entry的dependencies中可以找到两类依赖,除了工程本身的依赖还可以获取是webpack-marauder相关的公有依赖,可以找到promise-polyfill@6.1.0 object-assign@4.1.1。这类忽略掉了

三、 webpack-marauder升级可能会导致依赖树变化,需要对应检查

更新流程

git add .
git cz

Run the npm version npm version [path|minor|major] command

//发小补丁
npm version patch -m 'commit message'

//发小版本
npm version minor -m 'commit message'

//发小版本
npm version major -m 'commit message'

cnpm publish

Push

git push

Keywords

duplicate dependencie

FAQs

Package last updated on 09 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts