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
Output file name overwritten by generated.js #14
Comments
That's not a problem. The generated.js is just a placeholder and actually not used by any tool. |
Hi, this seems to be the case when using the JavaScript API as well.
This is not true, as Uglify's |
When changing the file property to the correct value manually, the source maps no longer works as expected. The file mapping seems to be a bit off as the wrong content is displayed (file A shows the content of file B, etc.). I haven't been able to identify a pattern. It is perhaps not possible to alter such values of source maps manually after generation, but I'm adding this information here for the record as a warning for others. |
What is the correct value here? |
If the source code file is called |
So to be clear, the original post title implying that this was specific to the CLI is inaccurate? |
Yes.
|
FYI, that filename comes all the way from here: https://github.com/thlorenz/combine-source-map/blob/master/index.js#L60 Haven't had time to properly debug it myself but wanted to leave a hint for anyone who wants to play around. |
Actually that doesn't seem to be called from the tests so that may be a false flag. I'm not planning on looking into this any further but will happily review a PR if someone figures out how to resolve this. |
When using CLI, generated source maps
file
property points togenerated.js
even though command given should output to some other file.For example:
The text was updated successfully, but these errors were encountered: