Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
// maybe if we import config only first?
import { styled, config, setConfig } from 'styleh-components'
import { registerFormInputChainPlugins } from 'src/forms'
import variables from '../../client/styles/variables'
import theme from '../../client/styles/theme'
import { replacements } from '../../client/styles/replacements'

const IS_BROWSER = typeof window === 'object'
export const SHOULD_PRETTIFY = process.env.NODE_ENV === 'development'

export function setup(): void {
  setConfig({
    SHOULD_PRETTIFY,
    replacements,
    variables,
    theme,
  })

  registerFormInputChainPlugins()
}

if (IS_BROWSER) {
  window.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED__ = {}
}