This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Closure compiler exception when sourceMap set to true in tsconfig.json #25
Comments
gregmagolan
pushed a commit
to gregmagolan/closure-compiler
that referenced
this issue
Oct 8, 2017
gregmagolan
pushed a commit
to gregmagolan/closure-compiler
that referenced
this issue
Oct 8, 2017
@chuckjaz does this look like the source map problem you've been resolving? |
No but it looks like a compiler bug in that we shouldn't be emitting a file without a valid name. Can you a related bug in angular/angular? |
Also I wonder why we don't see this problem internally. |
@alexeagle internally we use inline sourcemaps. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Turning on sourceMap in
src/tsconfig.json
results in an exception during closure compile:I tracked this down to coming from an invalid entry in the
sources
array inbuilt/src/basic.ngfactory.js.map
:The value "../../" in
sources
ends up creating a null or empty fileName value in the SourceFile ctor which throws the exception. This seems to have been introduced with 5.0.0-rc.0. Could not reproduce with 5.0.0-beta.7. The same "../../" entry is inbasic.ngfactory.js.map
with 5.0.0-beta.7 but the mappings must be different as the same closure compiler does not throw an exception.The text was updated successfully, but these errors were encountered: