Skip to content

Commit 47b702e

Browse files
authored
Merge pull request #62 from styled-components/fix/stylis-reset
Reset stylis for preprocessUtils
2 parents acbdced + 28719f5 commit 47b702e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/css/preprocessUtils.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ import {
1010
fixGlobalPlaceholders,
1111
} from './placeholderUtils'
1212

13+
// Reset stylis middleware
14+
stylis.use(null)
15+
16+
// Set stylis options (matching SC options)
17+
stylis.set({
18+
global: false,
19+
cascade: true,
20+
keyframe: false,
21+
prefix: true,
22+
compress: false,
23+
semicolon: true,
24+
})
25+
1326
// Assembles CSS partials and replaces interpolations with placeholders
1427
export const assembleAndInterleavePlaceholders = cssArr => {
1528
let css = cssArr[0]

0 commit comments

Comments
 (0)