Skip to content

Commit 7eb6c8c

Browse files
committed
expose warn as noop in production builds
1 parent 575e810 commit 7eb6c8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/util/debug.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import config from '../config'
2+
import { noop } from 'shared/util'
23

3-
let warn
4+
let warn = noop
45
let formatComponentName
56

67
if (process.env.NODE_ENV !== 'production') {

0 commit comments

Comments
 (0)