-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not work with Babel #22
Comments
I think this must be solve explicitly:
AND
|
@bySabi I didn't start to work on babel, and I don't know to work with him yet, I have a question: when you write a match like this: matches(1)(
(x = { name: String}) => console.log('hey!'),
(x = Number) => console.log('ya!')
) it'll transpile as: matches(1)(function () {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { name: String };
return console.log('hey!');
}, function () {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Number;
return console.log('ya!');
}); since internal transpiled functions doesn't have parameters, is there a way to receive the written code instead the transpiled one in |
I'm afraid this is not posible, maybe with a
I started to coding one from scratch with benchmark comparison vs current |
@bySabi ok, I wasn't aware how |
I will follow another path where Babel is not a problem. |
Transformed code with Babel not work.
Probably is due this is not set: from
js-function-reflector
doc:The text was updated successfully, but these errors were encountered: