Giter VIP home page Giter VIP logo

Comments (3)

sam-frampton avatar sam-frampton commented on August 27, 2024 1

@Mokshit06 I can confirm it was the barrel imports! It's nice blazingly fast again 🎉

from macaron.

Mokshit06 avatar Mokshit06 commented on August 27, 2024

Hey, macaron shouldn't be affecting your HMR times this much unless its also evaluating the code that is not required. One of the ways I've encountered this is when using barrel exports and imports, i.e. export * in a file and then importing that file and using it's exports inside style declarations.

If this doesn't fix your issue I'll be happy to look at a reproduction if that's something that's possible.

from macaron.

sam-frampton avatar sam-frampton commented on August 27, 2024

@Mokshit06 Hey thanks for the tip. I think it's most definitely evaluating code that is not required. I currently have a UI folder that exports a lot of components that I import in other components in my React App.

Each time a component my app begins to HMR for an abnormal amount of time. I'll take your advice and remove barrel imports inside other style declarations. If the issue persists I'll send a reproduction.

Many thanks for responding

from macaron.

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.