-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathindex.js
63 lines (60 loc) · 1.52 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import appearence from './appearence'
import colorAdjust from './color-adjust'
import mask from './mask'
import textOrientation from './text-orientation'
import transform from './transform'
import transition from './transition'
import writingMode from './writing-mode'
import userSelect from './user-select'
import breakPropsOld from './break-props-old'
import inlineLogicalOld from './inline-logical-old'
import unprefixed from './unprefixed'
import prefixed from './prefixed'
import scrollSnap from './scroll-snap'
import overscrollBehavior from './overscroll-behavior'
import flex2012 from './flex-2012'
import flex2009 from './flex-2009'
import hyphens from './hyphens'
// Please, keep order plugins:
// plugins = [
// ...plugins,
// breakPropsOld,
// inlineLogicalOld,
// unprefixed,
// prefixed,
// scrollSnap,
// flex2012,
// flex2009
// ]
// Plugins without 'noPrefill' value, going last.
// 'flex-*' plugins should be at the bottom.
// 'flex2009' going after 'flex2012'.
// 'prefixed' going after 'unprefixed'
const plugins = [
appearence,
colorAdjust,
mask,
textOrientation,
transform,
transition,
writingMode,
userSelect,
hyphens,
breakPropsOld,
inlineLogicalOld,
unprefixed,
prefixed,
scrollSnap,
overscrollBehavior,
flex2012,
flex2009
]
export const propertyDetectors = plugins
.filter((p) => p.supportedProperty)
.map((p) => p.supportedProperty)
export const noPrefill = plugins
.filter((p) => p.noPrefill)
.reduce((a, p) => {
a.push(...p.noPrefill)
return a
}, [])