File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
import path from 'pathe'
2
- import { green , yellow } from 'colorette'
2
+ import { green , yellow , red } from 'colorette'
3
3
import createDebug from 'debug'
4
4
import { CompileErrorCodes , compile } from '../api'
5
5
import { t } from '../i18n'
@@ -69,7 +69,7 @@ export default function defineCommand() {
69
69
console . warn (
70
70
yellow (
71
71
t ( "{source}: Ignore compilation due to not supported '{ext}'" , {
72
- named : { ext : parsed . ext }
72
+ ext : parsed . ext
73
73
} )
74
74
)
75
75
)
@@ -78,16 +78,20 @@ export default function defineCommand() {
78
78
console . log (
79
79
yellow (
80
80
t ( 'Warning compilation: {source} -> {output}, {msg}' , {
81
- named : { source, output, msg }
81
+ source,
82
+ output,
83
+ msg
82
84
} )
83
85
)
84
86
)
85
87
break
86
88
case CompileErrorCodes . INTERNAL_COMPILE_ERROR :
87
- console . log (
88
- green (
89
+ console . error (
90
+ red (
89
91
t ( 'Error compilation: {source} -> {output}, {msg}' , {
90
- named : { source, output, msg }
92
+ source,
93
+ output,
94
+ msg
91
95
} )
92
96
)
93
97
)
You can’t perform that action at this time.
0 commit comments