Both ES6-unbundled and ES6-bundled presets result in an app that fails at launch on iOS 10, but not on iOS 11. The ES5-bundled preset works fine.
Error
SyntaxError: Cannot declare a let variable twice: 'a'.
(And a bunch of others which seem to follow this one)
polymer init -> polymer-starter-kitpolymer buildpolymer serve build/es6-unbundled or build/es6-bundledNo error is thrown and app loads normally, as on iOS 11
White screen and a bunch of console errors
More specifically, it has to do with js minification =>聽unminified versions of these presets seem to work
Any news on this? We have to serve an unminified version of our app to customers because of this (26% heavier).
The same issue appears when opened in Safari, for both build/es6-unbundled and build/es6-bundled. build/es5-bundled works fine.
@czellweg Desktop Safari 10?
Yes, desktop Safari 10.1.1. For now, we had to disable js-minification:
"builds": [
{
"preset": "es6-bundled",
"js": { "minify" : false }
}
]
Not satisfactory of course, yet it'll have to do for now.
As we have. I'll update the title for desktop and mobile
This issue was moved to Polymer/polymer-cli#946
I moved this because it's the CLI that actually handles minificiation by calling out to Babili.
Most helpful comment
Yes, desktop Safari 10.1.1. For now, we had to disable js-minification:
Not satisfactory of course, yet it'll have to do for now.