Skip to content

Commit c8f6799

Browse files
author
Christian.Schilling
committed
Fix failing tests for IE11 map compatibility (fixes https://github.com/gajus/react-css-modules/issues/157)
1 parent 35b4a53 commit c8f6799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/generateAppendClassName.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ export default (styles, styleNames: Array<string>, errorWhenNotFound: boolean):
1515
return styleNameIndex;
1616
}
1717
} else {
18-
stylesIndexMap = stylesIndex.set(styles, new Map());
18+
stylesIndexMap = new Map();
19+
stylesIndex.set(styles, new Map());
1920
}
2021

2122
appendClassName = '';

0 commit comments

Comments
 (0)