UNPKG

332 BJavaScriptView Raw
1/* @flow */
2
3import type {PluginConfig, PluginResult} from './index';
4
5import {getPrefixedStyle} from '../prefixer';
6
7export default function prefixPlugin(
8 {config, style}: PluginConfig, // eslint-disable-line no-shadow
9): PluginResult {
10 const newStyle = getPrefixedStyle(style, config.userAgent);
11 return {style: newStyle};
12}