Webpack 项目中
vue工程使用webpack,增加了cesium依赖,启动时会输出下面的警告信息:
WARNING Compiled with 3 warnings 4:26:41 PM
warning in ./node_modules/cesium/Source/Core/buildModuleUrl.js
114:14-21 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
warning in ./node_modules/cesium/Source

在Vue.js项目中,当使用Webpack整合Cesium库时,会出现关于buildModuleUrl.js的警告。为消除这些警告,需要在webpack配置文件(如webpack.base.conf.js或vue.config.js)中进行相应设置。通过添加特定配置,可以避免这些警告并成功运行项目。
订阅专栏 解锁全文
343

被折叠的 条评论
为什么被折叠?



