-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Babel sourcemaps support #567
Comments
Use them in what way? In my experience with other compilers, they hook automatically to error stacks. If cucumber-js is loading the babel files, I expect the sourcemaps to be used. |
I must confess, I really don't know much about how source maps work. All I know is when I include them in the directory I'm serving the browser automagically figures it out by looking at the source maps comment at the bottom of the generated file. It seems however that node doesn't figure it out just by it self. I had to use node-source-map-support to get node to understand the source-maps of a little test program I wrote. Looking at it more carefully though it seems that cucumber js is figuring out where to find the source maps for the error but it's reporting the incorrect line for the step definition. See below:
The correct line for the step definition is 77. |
Hmm, can you please provide a sample project setup so I can reproduce? |
Will put something together. |
Ok, clone this. You can read the instructions on the README. I actually don't expect it to do anything else because I'm not telling it where to find or how to produce source maps. |
I get the following output when running on node 6
The line appears correct to me. |
There is no line 15 in steps.js. |
@marthinus-engelbrecht |
The error stack ( |
Oh I see. My bad. |
Fixed in 1d02c6a |
Awesome 👍 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
Thanks for this. Cucumber + javascript = awesome.
I'm using babel as a compiler. Is there a way that I can tell cucumberjs to use the sourcemaps?
The text was updated successfully, but these errors were encountered: