MCPcopy
hub / github.com/NervJS/taro / warn

Function warn

packages/shared/src/utils.ts:88–94  ·  view source on GitHub ↗
(condition: boolean, msg: string)

Source from the content-addressed store, hash-verified

86}
87
88export function warn (condition: boolean, msg: string) {
89 if (process.env.NODE_ENV !== 'production') {
90 if (condition) {
91 console.warn(`[taro warn] ${msg}`)
92 }
93 }
94}
95
96export function queryToJson (str) {
97 const dec = decodeURIComponent

Callers 7

setAttributeMethod · 0.90
addEventListenerMethod · 0.90
removeEventListenerMethod · 0.90
setStyleFunction · 0.90
assignMethod · 0.90
reloadMethod · 0.90
runtime.tsFile · 0.90

Calls 1

warnMethod · 0.65

Tested by

no test coverage detected