-
Notifications
You must be signed in to change notification settings - Fork 581
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
Disable //# sourceURL=
output
#1748
Comments
Please post some examples related to traceur. |
2 of 2 examples I posted are related to traceur. I thought you're familiar with es6ify, which uses traceur to transpile. The example could also be transpiling files with traceur and concatenating or browserifying or otherwise bundling the generated files. You can also observe that the output of |
I want to focus on the issue related to |
Let's focus on that for the moment. (new traceur.NodeCompiler({sourceMaps: 'inline'}))
.compile(';', 'a', 'b') emits |
@johnjbarton @arv This issue isn't fully resolved. See # 2. Even without source mapping I don't want my line numbers mangled. It's not traceur's fault, but see # 2 -- these comments often serve no purpose and are causing a real world problem. |
As before, a traceur-specific case will help. If you are compiling using the compile() API, setting the input and output file name the same will suppress the sourceURL. |
Me:
Transpiling multiple items of code with traceur and concatenating or bundling the output into a single file in any fashion.
I guess when source mapping isn't being used then the A) If you're not doing source mapping, will load the generated code with a B) If you're not doing source mapping, will embed the generated code in a |
Please disable output of
//# sourceURL=
comments by default or at least provide an option to disable it. It serves no purpose in many cases and currently causes several problems in Chrome.Examples:
Currently results in broken source mapping due to Chrome's misapplication of
sourceURL
comments. The comments serve no purpose in this case because the source files are identified by thesources
array in the source map.See http://code.google.com/p/chromium/issues/detail?id=457419
Even without source mapping, presence of the
sourceURL
comments results in mangled line numbers in the debugger due to Chrome's misapplication of them. Again, they serve no purpose here (that I'm aware of).See http://code.google.com/p/chromium/issues/detail?id=459682
The text was updated successfully, but these errors were encountered: