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

fix: uniad 编译到微信小程序 cli 自动化测试失败的问题

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