提交 be439ee7 编写于 作者: Q qiang

Merge branch 'dev' into alpha

......@@ -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.
先完成此消息的编辑!
想要评论请 注册