Giter VIP home page Giter VIP logo

Comments (2)

FND avatar FND commented on July 20, 2024 1

FWIW, I just upgraded faucet-pipeline (faucet-pipeline/faucet-pipeline-js#45), which turned out to be pleasantly straightforward once I'd figured out what needed to be done.

Just in case it helps improve the path for others, allow me to elaborate on my journey:

I didn't know babel-upgrade existed, only learned about it via Henry's tweet. This brought me here - which was a little disorienting at first, as neither the issue description nor the README clearly state what babel-upgrade actually does. (Not a criticism, just an observation from someone who isn't tied into the community too closely.)

The usage instructions recommend using npx babel-upgrade, which I thought meant I had to npm install babel-upgrade first (apparently npx does that on the fly; TIL!). The final step was inferring that babel-upgrade modifies the respective package.json, upgrading dependencies - for Babel's own packages as well as packages from the greater ecosystem (in my case: rollup-plugin-babel).

After that, everything was pretty simple: updating dependencies to their latest version (babel-upgrade's transformations were a little outdated), running npm install (manually, mostly because I hadn't grokked babel-upgrade's role in the first place) and updating our tests (we're intentionally keeping a close eye on transpilation output, just to be safe).

The only trouble was figuring out the necessary Rollup adjustments (particularly WRT babel-plugin-external-helpers), but that wasn't a big deal either.

Anyway, looks like we're all set now - thanks for all your efforts!

from babel-upgrade.

motss avatar motss commented on July 20, 2024

How about ts-jest?

from babel-upgrade.

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.