Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Missing a "line preserve" option #4

Open
marcominetti opened this issue Apr 27, 2015 · 3 comments
Open

Missing a "line preserve" option #4

marcominetti opened this issue Apr 27, 2015 · 3 comments

Comments

@marcominetti
Copy link

When using with other compilers that feature sourcemap support, lines are no preserved against original source code causing line mismatch during debugging or code coverage analysis.

Can you add this option?

@dcodeIO
Copy link
Owner

dcodeIO commented Apr 27, 2015

Unfortunately, I don't have the time atm to dig though full fledged source map generation, which I assume would be required here. If you know of any tools to make this easier, let me know. I am also always happy to see a PR :)

@marcominetti
Copy link
Author

Hi! I'll review your code and try to assess whether is quick to integrate the sourcemap-related tools... And definitely wait for a PR... ;)

Do u use any AST parser or plain string-handling stuff?

@dcodeIO
Copy link
Owner

dcodeIO commented Apr 27, 2015

The source is actually quite short. Here is how it compiles: https://github.com/dcodeIO/MetaScript/blob/master/MetaScript.js#L79

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants