Skip to content

Commit

Permalink
Remove debug code from styletron.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tajo committed Dec 29, 2020
1 parent 715d80e commit 586a100
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/with-styletron/styletron.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Client, Server } from 'styletron-engine-atomic'
import { DebugEngine } from 'styletron-react'

const getHydrateClass = () =>
document.getElementsByClassName('_styletron_hydrate_')
Expand All @@ -8,8 +7,5 @@ export const styletron =
typeof window === 'undefined'
? new Server()
: new Client({
hydrate: getHydrateClass(),
hydrate: getHydrateClass()
})

export const debug =
process.env.NODE_ENV === 'production' ? void 0 : new DebugEngine()

0 comments on commit 586a100

Please sign in to comment.