import { Plugin } from '../PluginsRegistry' ; const prefixAll = require ( 'inline-style-prefix-all' ) ; const assign = require ( 'object-assign' ) ; const prefixerPlugin = ( _ , style ) => { const copy = { } ; for ( const prop in style ) { if ( style . hasOwnProperty ( prop ) ) { const value = style [ prop ] ; if ( value && ( typeof value !== 'object' || ! Array . isArray ( value ) ) ) { copy [ prop ] = value ; } } } assign ( style , prefixAll ( copy ) ) ; } ; export default prefixerPlugin ;