提交 be439ee7 编写于 作者: Q qiang

Merge branch 'dev' into alpha

......@@ -39,6 +39,10 @@ const normalizePath = path => (isWin ? path.replace(/\\/g, '/') : path)
module.exports = {
compile (source, options = {}) {
if (Array.isArray(options.modules)) {
options.modules.push(compilerModuleUniad)
}
if ( // 启用摇树优化后,需要过滤内置组件
!options.autoComponentResourcePath ||
options.autoComponentResourcePath.indexOf('@dcloudio/uni-h5/src') === -1
......@@ -49,8 +53,6 @@ module.exports = {
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.
先完成此消息的编辑!
想要评论请 注册