-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fails on class member methods #3
Comments
Hey @kmannislands I’ve not had the time lately to spend working on this. Originally I built this to only be used inside of functions, but there are so many other usages of the plugin like your example :) I’d definitely be open to help with supporting class methods if you’ve got the time? Otherwise I can try to put some time to the side next week to take a look for you. |
I highly recommend @kentcdodds course on egghead about ASTs or his frontend masters course. This repo has tests so you could add your test case in to the suite and update the plugin until it passes. I also recommend astexplorer which Kent explains how to use in his videos. If you have any questions feel free to drop a line. |
@mattphillips I'm interested in helping out, I'll take a look at the code this weekend. I am also having some trouble getting babel to build inside of arrow functions or decorated functions, haven't had time to isolate the problem yet. May open another ticket or two once I do. |
Would be nice to see this fixed |
Not planning on pursuing this personally in favor of VS Code's debug mode. |
Bug
babel-plugin-console
version:v0.2.0
node
version: triedv6.11.4
andv8.4.0
npm
(oryarn
) version:v1.1.0
andv1.3.2
, respectivelyWhat you did:
Added a
console.scope
to a class member method.What happened (please provide anything you think will help):
Babel failed to build.
Relevant code or config:
To demonstrate using the
babel
REPL, runbabel-node --plugins console
and then do something like:if you try and build something like the above example with
webpack
andbabel-loader
you get something like:I would really like to use this babel-plugin (looks cool), but I can't introduce it if it kills the webpack build when a dev puts a
console.scope
in a wrong place.Interested in helping to see this through if this package is still maintained.
The text was updated successfully, but these errors were encountered: