mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Dont' override glamor methods, use a new object instead (#754)
This commit is contained in:
parent
0b2b56f174
commit
86516629cf
|
@ -1,5 +1,7 @@
|
||||||
import { deprecated } from './utils'
|
import { deprecated } from './utils'
|
||||||
const css = require('glamor')
|
import glamor from 'glamor'
|
||||||
|
|
||||||
|
const css = Object.assign({}, glamor)
|
||||||
|
|
||||||
for (const [k, v] of Object.entries(css)) {
|
for (const [k, v] of Object.entries(css)) {
|
||||||
if (typeof v === 'function') {
|
if (typeof v === 'function') {
|
||||||
|
|
Loading…
Reference in a new issue