Skip to content

Commit 23cddda

Browse files
timneutkensrauchg
authored andcommitted
Only show deprecation when using next/css (#762)
1 parent 7be5797 commit 23cddda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/css.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { deprecated } from './utils'
22
const css = require('glamor')
3+
// Needed because of the mutation below
4+
delete require.cache[require.resolve('glamor')]
35

46
for (const [k, v] of Object.entries(css)) {
57
if (typeof v === 'function') {

0 commit comments

Comments
 (0)