mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Only show deprecation when using next/css (#762)
This commit is contained in:
parent
7be5797cc2
commit
23cddda9cf
|
@ -1,5 +1,7 @@
|
|||
import { deprecated } from './utils'
|
||||
const css = require('glamor')
|
||||
// Needed because of the mutation below
|
||||
delete require.cache[require.resolve('glamor')]
|
||||
|
||||
for (const [k, v] of Object.entries(css)) {
|
||||
if (typeof v === 'function') {
|
||||
|
|
Loading…
Reference in a new issue