Comments (9)
I've tried to upgrade the plugin to babel 7. Tests still pass. See https://github.com/mfila/babel-plugin-tailcall-optimization/tree/babel7.
All it takes has been:
- removing old packages
- installing new ones (replacing
babel-preset-es2015
withbabel-preset-env
, and movingbabel-core
frompeerDependencies
todevDependencies
) - upgrading to
@babel
namespace in a couple of places
from babel-plugin-tailcall-optimization.
@mfila, yeah thanks that looks good!
from babel-plugin-tailcall-optimization.
Please let me know of I can help with something about that.
from babel-plugin-tailcall-optimization.
@xtuc is there a nice migration guide somewhere? or could you point me to another not-so-complicated plugin that start supporting babel@7 so i can take a closer look at diff? Thanks :)
from babel-plugin-tailcall-optimization.
We have http://babeljs.io/blog/2017/03/01/upgrade-to-babel-7-for-tool-authors but it's not really up-to-date.
I would suggest you using https://github.com/babel/babel-upgrade.
from babel-plugin-tailcall-optimization.
@mfila shieeet, nice :D Do you want to make a PR? to alternative branch like next
? I can get this published.
from babel-plugin-tailcall-optimization.
@krzkaczor yes... an alternative branch would be great, thanks!
from babel-plugin-tailcall-optimization.
I've updated my branch to use Babel 7 beta.56 before making the PR
from babel-plugin-tailcall-optimization.
@mfila thanks so much for your contribution!
from babel-plugin-tailcall-optimization.
Related Issues (15)
- Plugin breaks on `export default function` due to null pointer HOT 4
- Didn't ES2015 introduce tail call optimization? HOT 3
- conditional operator not supported HOT 6
- does not work with concise body syntax (implied return) in arrow function
- Can a Babel 7 release be awaited? HOT 4
- Discussion of adding TCO when closure is detected HOT 8
- How the conversion is helping in TCO ? HOT 1
- -
- -
- -
- dependencies that should be dev HOT 1
- Discussion about mutual recursion
- invalid code generated due to missing semicolons HOT 1
- Doesn't handle the ternary operator HOT 2
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-plugin-tailcall-optimization.