标签:ica 使用 环境 can main rac static tap pack
target: ‘node‘
环境中require
:// for example 1:
const reload = require('require-reload')(requireFunc)
// for example 2:
function main () {
var data = require(dataPath)
}
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
Critical dependency: the request of a dependency is an expression
const requireFunc = typeof __webpack_require__ === 'function' ? __non_webpack_require__ : require
(PS:该方案是在度娘中找到的,并非原创,苦于已经找不到原文,因此自己记录下,以便于下次遇到问题时方便查找)
标签:ica 使用 环境 can main rac static tap pack
原文地址:https://www.cnblogs.com/leona-d/p/12312754.html