未验证 提交 4f186e61 编写于 作者: fxy060608's avatar fxy060608 提交者: GitHub

Merge pull request #3146 from yazi-xiaofan/dev

fix:修正package.json配置自定义编译条件覆盖为false
......@@ -35,7 +35,9 @@ module.exports = {
if (scriptName !== name) {
const define = uniAppOptions.scripts[scriptName].define
Object.keys(define).forEach(name => {
define[name] = false
if (typeof scriptOptions.define[name] === "undefined") {
define[name] = false
}
})
Object.assign(scriptOptions.define, define)
}
......@@ -50,4 +52,4 @@ module.exports = {
return scriptOptions
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册