提交 1453618a 编写于 作者: d-u-a's avatar d-u-a

fix: vue2 ad 组件设置adpid后编译到微信小程序时缺少相关组件的问题

上级 e3782017
......@@ -38,7 +38,11 @@ const isWin = /^win/.test(process.platform)
const normalizePath = path => (isWin ? path.replace(/\\/g, '/') : path)
module.exports = {
compile (source, options = {}) {
compile (source, options = {}) {
if (Array.isArray(options.modules)) {
options.modules.push(compilerModuleUniad)
}
if ( // 启用摇树优化后,需要过滤内置组件
!options.autoComponentResourcePath ||
options.autoComponentResourcePath.indexOf('@dcloudio/uni-h5/src') === -1
......@@ -48,8 +52,6 @@ module.exports = {
if (!options.modules) {
options.modules = []
}
options.modules.push(compilerModuleUniad)
// transformAssetUrls
options.modules.push(require('./asset-url'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册