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

consume sourcemap directive when parsing source code #128

Open
caridy opened this issue Nov 19, 2014 · 2 comments · May be fixed by #824
Open

consume sourcemap directive when parsing source code #128

caridy opened this issue Nov 19, 2014 · 2 comments · May be fixed by #824

Comments

@caridy
Copy link

caridy commented Nov 19, 2014

according to our conversation yesterday, if the sourcemap is base64 embeded in the source code, we should do this:

  • extract it before calling esprima (for perf reasons)
  • digest the sourcemap as the input sourcemap
@benjamn
Copy link
Owner

benjamn commented Nov 19, 2014

👍!

@Zzzen
Copy link

Zzzen commented Aug 12, 2020

Does recast accept input sourcemap? I'm writing a webpack loader with recast but don't know how to generate sourcemap with existing sourcemap.

Qix- added a commit to Qix-/recast that referenced this issue Dec 9, 2020
@Qix- Qix- linked a pull request Dec 9, 2020 that will close this issue
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 a pull request may close this issue.

3 participants