File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,22 +14,6 @@ function wrapReporter(reporter: ConsolaReporter) {
1414 }
1515 const msg = logObj . args [ 0 ]
1616 if ( typeof msg === 'string' && ! process . env . DEBUG ) {
17- // Hide vue-router 404 warnings
18- if (
19- msg . startsWith (
20- '[Vue Router warn]: No match found for location with path' ,
21- )
22- ) {
23- return
24- }
25- // Suppress warning about native Node.js fetch
26- if (
27- msg . includes (
28- 'ExperimentalWarning: The Fetch API is an experimental feature' ,
29- )
30- ) {
31- return
32- }
3317 // TODO: resolve upstream in Vite
3418 // Hide sourcemap warnings related to node_modules
3519 if ( msg . startsWith ( 'Sourcemap' ) && msg . includes ( 'node_modules' ) ) {
@@ -42,6 +26,7 @@ function wrapReporter(reporter: ConsolaReporter) {
4226}
4327
4428export function setupGlobalConsole ( opts : { dev ?: boolean } = { } ) {
29+ consola . options . formatOptions . date = false
4530 consola . options . reporters = consola . options . reporters . map ( wrapReporter )
4631
4732 // Wrap all console logs with consola for better DX
You can’t perform that action at this time.
0 commit comments