Code Monkey home page Code Monkey logo

Comments (8)

babel-bot avatar babel-bot commented on June 10, 2024

Hey @Mupli! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

from babel.

nicolo-ribaudo avatar nicolo-ribaudo commented on June 10, 2024

With npm you can use overrides to change the version of any transitive dependency: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

Reason why I want to downgrade is because babel is 100x slower than previous version

Do you have a test case? It's the first time this gets reported, and I'd like to fix it.

from babel.

nicolo-ribaudo avatar nicolo-ribaudo commented on June 10, 2024

Also btw, babel/cli does not depend on babel/core, it only has a peer dependency.

from babel.

Mupli avatar Mupli commented on June 10, 2024

@nicolo-ribaudo hi, thx for quick answer. No I don't have test case. I run it on my project.

153 files (simple esm module files without jsx) + 3 files with jsx tags

  • on 7.18.6 it was ~0.5 sec
  • on 7.24... it is 21 seconds !!

my babel config should change only 3 files with jsx and rest should be copied.

from babel.

Mupli avatar Mupli commented on June 10, 2024

my command "babel app --out-dir _app"

from babel.

Mupli avatar Mupli commented on June 10, 2024

With npm you can use overrides to change the version of any transitive dependency: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

Well I don't think I should use override in globally installed libs.

from babel.

Mupli avatar Mupli commented on June 10, 2024

Also btw, babel/cli does not depend on babel/core, it only has a peer dependency.

Doesn't that mean that updated lib can bump up version of library?
Shouldn't be the way that version 1.0.0 works exactly the same as 10 years ago? (with same libraries).

from babel.

Mupli avatar Mupli commented on June 10, 2024

I've started to use project babel cli via package.json (npm run.. babel). I could install core and cli with 7.18.6 by removing "^" from dependencies in package.json and reinstalling.

Now build takes ~1.0 sec.

You can close the issue if you want though I still don't know how to install same version for core and cli in global library.

from babel.

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.