Git Product home page Git Product logo

Comments (3)

drcmda avatar drcmda commented on May 3, 2024 1

The errors would be interesting, but probably just missing polyfills since we compile via babel-env without browser config.

Looking through the code there doesn't seem to be anything special. It's using Set, Object.keys, Object.is.

It's probably the former (Obj.id). If you add a core-js polyfill, it will surely work. Could you import zustand/cjs and try adding corejs?

from zustand.

collegeimprovements avatar collegeimprovements commented on May 3, 2024

It indeed worked. Thanks a lot :)

from zustand.

hibachrach avatar hibachrach commented on May 3, 2024

Not sure if I should open up another issue, so I thought I'd ping here first: is there a reason that he ES Module source isn't transpiled for IE11 as well? If I am importing this with ES Module syntax with webpack for a web target, it's going to pick up the module entry point in package.json which includes stuff like Object.assign (a non-ES Module ES6) and not transpile it. I'd then have to transpile zustand myself. Is this intended?

Some reasoning/context: webpack/webpack#1979 (comment)

EDIT: Actually, looking at the build, it doesn't seem like Object.assign or Object.is are being transpiled anywhere even though

Sorry, I was confusing transformations with polyfills. However, it might help in the README to make list of polyfills that might be necessary if targeting IE11 (as that seems to have explicit support)

from zustand.

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.