Skip to content

Commit

Permalink
Only show deprecation when using next/css (vercel#762)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored and rauchg committed Jan 13, 2017
1 parent 7be5797 commit 23cddda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/css.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down

0 comments on commit 23cddda

Please sign in to comment.