Skip to content

Commit

Permalink
Move fbjs imports for warning and camelizeStyleName (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored and Kye Hohenberger committed Jul 26, 2017
1 parent 060953e commit cceeba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/glamor/CSSPropertyOperations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* @providesModule CSSPropertyOperations
*/

import camelizeStyleName from 'fbjs/lib/camelizeStyleName'
import dangerousStyleValue from './dangerousStyleValue'
import hyphenateStyleName from 'fbjs/lib/hyphenateStyleName'
import memoizeStringOnly from 'fbjs/lib/memoizeStringOnly'
import warning from 'fbjs/lib/warning'

export const processStyleName = memoizeStringOnly(hyphenateStyleName)

if (process.env.NODE_ENV !== 'production') {
const warning = require('fbjs/lib/warning')
const camelizeStyleName = require('fbjs/lib/camelizeStyleName')
// 'msTransform' is correct, but the other prefixes should be capitalized
let badVendoredStyleNamePattern = /^(?:webkit|moz|o)[A-Z]/

Expand Down

0 comments on commit cceeba4

Please sign in to comment.