Search code examples
apigoogle-closure-compilersource-maps

Missing --create_source_map option for Closure Compiler Service API


I'm using Closure Compiler Service API to get JavaScript compiledCode. For debugging purposes on live environments I may need to have an option to get the source maps from same response if possible, similar to command line option --create_source_map: https://developers.google.com/closure/compiler/faq

Is closure compiler service API able to do that too? I could not find any arguments in this regard https://developers.google.com/closure/compiler/docs/api-ref

Thanks


Solution

  • The API does not currently support this. It would be good to file a issue https://github.com/google/closure-compiler but the team has not really been investing in the API. Keep in mind the API service isn't really suitable for production services as it doesn't provide any uptime guarantees or any guarantees at all really (having per minute/hour/day throttling per user and can contain breaking changes whenever the Closure Compiler is released).