We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 82154d0 + f213d8e commit 9ac3c15Copy full SHA for 9ac3c15
1 file changed
modules/generator/generatePrefixMap.js
@@ -54,14 +54,16 @@ export default function generatePrefixMap(browserList: Object): Object {
54
const versions = getSupport(keyword)
55
56
for (let i = 0, len = keywordProperties.length; i < len; ++i) {
57
- if (versions[browser].x >= browserList[browser]) {
58
- const property = keywordProperties[i]
59
- if (!prefixMap[property]) {
60
- prefixMap[property] = []
61
- }
+ if (versions[browser]){
+ if (versions[browser].x >= browserList[browser]) {
+ var property = keywordProperties[i];
+ if (!prefixMap[property]) {
+ prefixMap[property] = [];
62
+ }
63
- if (prefixMap[property].indexOf(prefix) === -1) {
64
- prefixMap[property].push(prefix)
+ if (prefixMap[property].indexOf(prefix) === -1) {
65
+ prefixMap[property].push(prefix);
66
67
}
68
69
0 commit comments