Giter Club home page Giter Club logo

Comments (8)

gnh1201 avatar gnh1201 commented on June 2, 2024

This code works well with only babel-polyfill and es5 shim and sham. The problem occurs when adding es6-shim here.

from es6-shim.

ljharb avatar ljharb commented on June 2, 2024

Is this still an issue after #466 is merged?

from es6-shim.

gnh1201 avatar gnh1201 commented on June 2, 2024

Yes. This seems to be another problem. I'll track it down.

from es6-shim.

gnh1201 avatar gnh1201 commented on June 2, 2024

shimtest.js: https://gist.github.com/gnh1201/2627d860e41f8bd2dba858536836c64e

from es6-shim.

zloirock avatar zloirock commented on June 2, 2024

@gnh1201 why do you need both - core-js and es-shims? It's a bad practice. What does es-shims fix in this case? BTW babel-polyfill is obsolete for a long time ago and the actual version of core-js should be used directly.

from es6-shim.

gnh1201 avatar gnh1201 commented on June 2, 2024

@zloirock I had no choice but to choose babel-polyfill and es5-shim. It worked well and successfully executed the JS library file written in ES5. Trying es6-shim was an option for me, but I thought I'd still test it.

from es6-shim.

ljharb avatar ljharb commented on June 2, 2024

While most of the es-shims should work fine alongside core-js, it's definitely odd to mix them.

I would expect that es5-shim and es6-shim alone could get you mostly up to speed, except for the Symbol shams that core-js includes but es6-shim does not.

from es6-shim.

gnh1201 avatar gnh1201 commented on June 2, 2024

I tested core-js and confirmed that the example code works well. But I still have to wait and see. I think I need to check the impact when es-shims is excluded from my project.

from es6-shim.

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.