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

Source map support #34

Open
lifthrasiir opened this issue Sep 25, 2021 · 0 comments
Open

Source map support #34

lifthrasiir opened this issue Sep 25, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request js preprocess

Comments

@lifthrasiir
Copy link
Owner

It turns out that we can put the source map comment into evaled code and devtools do recognize it. This should not present in the final build, so I think the resulting code should be made obvious that the source map is in use, like this:

eval(Function(/* compressed data here */)(...)+'\n//# sourceMappingUrl=foo.js.map')

We would have to preserve the existing sourceMappingUrl comment and update it (and also sourceURL) if the JS preprocessing is in use.

@lifthrasiir lifthrasiir added enhancement New feature or request js preprocess labels Sep 25, 2021
@lifthrasiir lifthrasiir self-assigned this Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request js preprocess
Projects
None yet
Development

No branches or pull requests

1 participant