@glitz/prefixer-transformer

A TypeScript and Glitz wrapper for [`inline-style-prefixer/static`](https://github.com/rofrischmann/inline-style-prefixer).

Stats

StarsIssuesVersionUpdatedCreatedSize
@glitz/prefixer-transformer
4224.0.0a month ago4 years agoMinified + gzip package size for @glitz/prefixer-transformer in KB

Readme

Glitz

A TypeScript and Glitz wrapper for inline-style-prefixer/static.

import { GlitzClient } from '@glitz/core';
import prefixer from '@glitz/prefixer-transformer';
const glitz = new GlitzClient({ transformer: prefixer });

const className = glitz.injectStyle({
  display: 'flex',
  // Will be transformed into:
  // {
  //   display: [
  //     '-webkit-box',
  //     '-moz-box',
  //     '-ms-flexbox',
  //     '-webkit-flex',
  //     'flex',
  //   ],
  // }
});

This is basically the same thing as:

import { GlitzClient } from '@glitz/core';
import prefixAll from 'inline-style-prefixer/static';
const glitz = new GlitzClient({ transformer: prefixAll });

But with correct types for TypeScript when used with @glitz/core.

Getting started

$ npm install @glitz/prefixer-transformer

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.