You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
275 B
11 lines
275 B
const stringify = require('./stringify')
|
|
module.exports = function (errors) {
|
|
const {
|
|
runByHBuilderX
|
|
} = require('@dcloudio/uni-cli-shared')
|
|
if (runByHBuilderX) {
|
|
console.log('WARNING: ' + stringify(errors))
|
|
} else {
|
|
console.warn(stringify(errors))
|
|
}
|
|
}
|
|
|