Skip to content
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

Pass filename to ast-transform for sourcemaps #140

Merged
merged 2 commits into from
Dec 6, 2018

Conversation

mantoni
Copy link
Contributor

@mantoni mantoni commented Dec 4, 2018

This is a solution for #139. Once I had it reproduced properly, it was relatively clear what was going 😄

@goto-bus-stop
Copy link
Member

great, thanks :) did you try this patch in devtools? I don't remember if you need to pass the full file name or just the basename without the directory. if you tried it like this and it worked then LGTM

@mantoni
Copy link
Contributor Author

mantoni commented Dec 4, 2018

Yeah, it works in dev tools, but I need to remove the basedir, I think. Looking into it.

@mantoni
Copy link
Contributor Author

mantoni commented Dec 4, 2018

I added a commit to make the filename relative. I hope it was the right thing to check for the basedir option and fall back to process.cwd(). That's how browserify seems to handle it.

@mantoni
Copy link
Contributor Author

mantoni commented Dec 6, 2018

Anything else I can do to get this landed? This change works fine for me.

@goto-bus-stop goto-bus-stop merged commit dec4f50 into choojs:master Dec 6, 2018
@mantoni mantoni deleted the sourcemap-filenames branch December 6, 2018 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants