浏览器是否可以显示dianose require()调用的回溯?

时间:2016-01-27 04:23:07

标签: javascript build browserify

我的JavaScript文件之间存在多个依赖关系。对browserify运行时,错误消息并不表示哪个文件无法引入依赖项。

Error: Cannot find module 'mapping' from '...'
    at /usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:46:17
    at process (/usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:173:43)
    at ondir (/usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:188:17)
    at load (/usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:69:43)
    at onex (/usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:92:31)
    at /usr/lib/node_modules/browserify/node_modules/resolve/lib/async.js:22:47
    at Object.oncomplete (fs.js:108:15)

有没有办法让browserify说出"我无法找到'映射'来自内部的依赖关系''"""

0 个答案:

没有答案