Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

最新版0.5.1依赖不能完全提取,降级到0.4.1可以全部提取。 #103

Open
qinshenxue opened this issue Sep 17, 2015 · 6 comments

Comments

@qinshenxue
Copy link

如题

@ewill
Copy link

ewill commented Sep 20, 2015

我也遇到同样的问题

@benben77
Copy link

lib/script.js里
306行(parseModuleDependencies里)
.uniq(function(item) {return item.path})
这里path可能是undefined
是不是用item.id比较好

@vrbvillor
Copy link

可是我这边,重新安了0.4.1,再运行,还是没办法完全提取依赖,尤其是两层之后的,根本就不识别。
像我现在下边这种文件结构

\try.js
\ucenter\try.js
\incs\funcs\address.js
\incs\funcs\select.js

其中select谁也没依赖,然后address依赖select,在ucenter/try.js依赖address,打包之后就能提取到address跟select两个人,但最根处的try.js依赖ucenter/try.js时,只能提取到ucenter/try.js和address.js,不能把select.js也抽出来,最后concat出来的文件,就缺select那部分。

@jackzlz
Copy link

jackzlz commented Nov 16, 2015

@benben77 是啊,害得我调试了大半天,坑爹呀。。。

@simonguo
Copy link

太坑了,我也遇到这样的问题

sunylt added a commit to sunylt/grunt-cmd-transport that referenced this issue Dec 8, 2016
fix line  306  id去重错误 [spmjs#103](spmjs#103)
@sunylt sunylt mentioned this issue Dec 8, 2016
@kevgithub
Copy link

这个问题解决了吗?为什么我把@sunyit 修改的代码放上去依然无法提取全部依赖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants