GithubHelp home page GithubHelp logo

Comments (5)

snuggs avatar snuggs commented on May 22, 2024

This only comes up when using minified es6. @pachonk care to test this out?

from snuggsi.

grepsedawk avatar grepsedawk commented on May 22, 2024

from snuggsi.

snuggs avatar snuggs commented on May 22, 2024

@pachonk check out the dist readme. It's in the minification step. Converting es6 to es5. I think our polyfill uses the same minifier thus creating the same tiny variable names e.

We use this https://github.com/paulovieira/UglifyJS2

from snuggsi.

snuggs avatar snuggs commented on May 22, 2024

@pachonk to be clear i don't know what that first error is. That should cure half your queries. 😜

from snuggsi.

snuggs avatar snuggs commented on May 22, 2024

@angelocordon @robcole @brandondees come to find out this was a bug in Safari. They have recently fixed it and is in current preview of Safari 11 (releasing in September). This is a good thing but requires someone to be forced to update. This bug still lingers for many people on safari who haven't updated. This is a perfect example of by leaning on the specs since they are "living" not every browser will always be at 100%. That being said the onus is on the PLATFORM VENDOR not the developer to update as in this case. The problem is happening when we minify ES6 -> ES6(minified with UglifyJS). I'll get this fixed up after I do a little research on the references. Luckily we have an unminified version that works fine and can use that in the mean time for Safari support. Thus (temporarily) fixing the initial issue @angelocordon and I first discovered.

Reference Links

Fix for UglifyJS

safari10: true
https://github.com/mishoo/UglifyJS2/tree/harmony#mangle-options

Problematic UglifyJS Output

If you notice below the .assign (e, ...) is being shadowed by let e later within the function. The ECMAScript language has no issue with shadowing variables (We do this with Element vs window.Element)
capture d ecran 2017-08-22 a 09 58 00
capture d ecran 2017-08-22 a 09 57 26

from snuggsi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.