5.0.21 • Published 6 years ago

fela-plugin-remove-undefined v5.0.21

Weekly downloads
150
License
MIT
Repository
github
Last release
6 years ago

Deprecated!The remove undefined plugin (fela-plugin-remove-undefined) is deprecated, please remove it from your Fela configuration.Fela automatically removes 'undefined' values making this plugin obsolete.

fela-plugin-remove-undefined

Removes any undefined value or string values containing undefined. It also checks array values. This plugin has been used to ensure auto prefixing to work. It is not necessary anymore as Fela automatically strips all undefined values.

Installation

yarn add fela-plugin-remove-undefined

You may alternatively use npm i --save fela-plugin-remove-undefined.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import removeUndefined from 'fela-plugin-remove-undefined'

const renderer = createRenderer({
  plugins: [ removeUndefined() ]
})

Example

Input

{
  color: 'blue',
  fontSize: undefined,
  border: 'undefinedpx solid blue',
  ':hover': {
    color: [ 'rgba(0, 0, 0, 0.4)', undefined, 'black' ]
  }
}

Output

{
  color: 'blue',
  ':hover': {
    color: [ 'rgba(0, 0, 0, 0.4)', 'black' ]
  }
}

License

Fela is licensed under the MIT License. Documentation is licensed under Creative Common License. Created with ♥ by @rofrischmann and all the great contributors.

5.0.21

6 years ago

5.0.20

6 years ago

5.0.19

6 years ago

5.0.18

6 years ago

5.0.17

6 years ago

5.0.16

6 years ago

5.0.15

6 years ago

5.0.14

6 years ago

5.0.13

6 years ago

5.0.12

7 years ago

5.0.11

7 years ago

5.0.10

7 years ago

5.0.9

7 years ago

5.0.8

7 years ago

5.0.7

7 years ago

5.0.6

7 years ago

5.0.5

7 years ago

5.0.4

7 years ago

5.0.3

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

4.3.5

7 years ago

4.3.4

7 years ago

4.3.3

7 years ago

4.3.2

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.2.6

7 years ago

4.2.5

7 years ago

4.2.4

7 years ago

4.2.3

7 years ago

4.2.2

7 years ago

4.2.1

7 years ago

4.2.0

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.8

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.2.0

8 years ago