1
0
Fork 0
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:
Tim Neutkens 2017-01-13 23:46:21 +01:00 committed by Guillermo Rauch
parent 7be5797cc2
commit 23cddda9cf

View file

@ -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') {