Move /platform/detection vars into /env (#9707)
* Add platform vars to env * Replace /platform/detection with /env
This commit is contained in:
@@ -2,7 +2,7 @@ import format from 'date-fns/format'
|
||||
|
||||
import {LogLevel, type Transport} from '#/logger/types'
|
||||
import {prepareMetadata} from '#/logger/util'
|
||||
import {isWeb} from '#/platform/detection'
|
||||
import {IS_WEB} from '#/env'
|
||||
|
||||
/**
|
||||
* Used in dev mode to nicely log to the console
|
||||
@@ -33,7 +33,7 @@ export const consoleTransport: Transport = (
|
||||
msg += ` ${message.toString()}`
|
||||
}
|
||||
|
||||
if (isWeb) {
|
||||
if (IS_WEB) {
|
||||
if (hasMetadata) {
|
||||
console.groupCollapsed(msg)
|
||||
console.log(metadata)
|
||||
|
||||
Reference in New Issue
Block a user