Comments (2)
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.
How about ts-jest
?
from babel-upgrade.
Related Issues (20)
- plugins aren't added to package.json
- [Ignore]
- SUGGESTION: Modify useBuiltIns for babel-preset-env in babelrc
- Plugins order are incorrect: proposal-decorators compatibility with proposal-class-properties
- Packages are capped at ^7.0.0 HOT 3
- add help
- Jest 24 dropped support for babel 6
- Upgrade failed
- "Move this into the monorepo when somewhat ready"
- Export package.json dependencies and .babelrc from repl
- @babel/core was added twice into package.json HOT 2
- cannot find module babel-plugin-transform-object-rest-spread HOT 1
- After upgrade to Babel7, I see Cannot find module '@babel/runtime-corejs2/core-js/reflect/construct' HOT 1
- Resolve duplicate entries HOT 2
- error on transform-export-extensions plugin upgrade
- Not have support to babel-plugin-transform-decorators-legacy HOT 1
- [ Bug ] Wrong behavior with unknown parameters HOT 1
- babel-upgrade is broken if you have spaces in user folder.
- ERROR in multi babel-polyfill ./src/client/index Module not found: Error: Can't resolve 'babel' in 'C:\Users\messi\New folder' @ multi babel-polyfill ./src/client/index main[1] HOT 2
- Babel Upgrade Online HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-upgrade.