1 | /* @flow */
|
2 |
|
3 | import type {PluginConfig, PluginResult} from './index';
|
4 |
|
5 | import {getPrefixedStyle} from '../prefixer';
|
6 |
|
7 | export 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 | }
|