Block scope transform not included when targeting Safari 10
ssilve1989 opened this issue · comments
Steve commented
Specifying a target of "safari >= 10"
doesn't use the transform-es2015-block-scoping
plugin. Yet Safari 10 does need this because of this bug.
Ex:
{
let a = 3
}
let a = 3
is an error in Safari 10.1.2 resulting in SyntaxError: Can't create duplicate variable that shadows a global property: 'a'
.
I've had to manually include this plugin in the include
option to get Safari working.
Brian Ng commented
@ssilve1989 thanks for the report! since we source our mappings via compat-table, mind reporting this over there?
Steve commented
@existentialism done
Babel Bot commented
This issue has been moved to babel/babel#6605.