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

How to handle transpiled code's source map when passed to ngAnnotate? #218

Closed
Rush opened this issue Dec 26, 2015 · 1 comment
Closed

How to handle transpiled code's source map when passed to ngAnnotate? #218

Rush opened this issue Dec 26, 2015 · 1 comment

Comments

@Rush
Copy link

Rush commented Dec 26, 2015

So I've ran babel on my code and I get a string with the transpiled code and the inline source map at the end, like so:

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz.....

Then I run ngAnnotate

let res = ngAnnotate({add: true, map: {inline: true, inFile: "source.js"}}, transpiledCodeWithInlineSourceMap);

I expect to see a source map mapping all the way to the original file but it's not the case? Any tips how to handle it?

@olov
Copy link
Owner

olov commented Jun 8, 2016

#245

@olov olov closed this as completed Oct 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants