Giter Site home page Giter Site logo

Comments (4)

clauderic avatar clauderic commented on May 4, 2024

Unfortunately it appears not, check out moment/moment#2373 for more info. Just a thought, and not sure whether this is an option for you, but if size is a concern you can perhaps try using rollup.

Might be worth checking out https://date-fns.org/ to see if it would be a suitable replacement, though I don't know if it supports locale customization.

from react-infinite-calendar.

sandysaders avatar sandysaders commented on May 4, 2024

@clauderic I'm using webpack instead of rollup, It's just jarring that a 3rd party component is accountable for 20% or greater of the application I'm working on. It is also not really the component itself taking up the size but rather its dependencies. Given that our application Is extremely large this should give pause for concern. It is also quite noticeable as the page that we are dropping the component in takes a visibly noticeable longer time to load. Idk if you have tried to benchmark the component but maybe you should. People who want to use it like in our case will not be able to use it in production any longer just because of sheer size that cannot be justified. I think the component is really really great. Its sad we will not be able to use it.

from react-infinite-calendar.

clauderic avatar clauderic commented on May 4, 2024

To be clear, I agree with you on all points stated above. Unfortunately I don't have the capacity to look into this at the moment, though I might someday given enough interest. If it's something you feel strongly about, I'd happily accept a PR to switch from moment to date-fns

from react-infinite-calendar.

sandysaders avatar sandysaders commented on May 4, 2024

Maybe https://github.com/react-component/calendar can give you an Idea of how to handle locale without moment. We're moving to this calendar with a smaller footprint for now.

from react-infinite-calendar.

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.