babel collect imports:从入口点递归收集所有内部和外部依赖项 源码
babel-collect-imports 从入口点递归收集所有内部和外部依赖项 安装 yarn add babel-collect-imports 用法 const { collectImportsSync } = require ( 'babel-collect-imports' ) ; let { internal , external } = collectImportsSync ( 'path/to/entry.js' ) ; // { internal: ['path/to/entry.js', 'path/to/import.js', 'path/to/other/import
文件列表
babel-collect-imports-master.zip
(预估有个16文件)
babel-collect-imports-master
.flowconfig
58B
yarn.lock
102KB
fixtures
internal-and-external.js
21B
none.js
9B
export-from.js
24B
internal.js
17B
external.js
19B
cycle-a.js
20B
暂无评论