@NotThreadSafe public final class TranspilingClosureBundler extends ClosureBundler
ClosureBundler that transpiles its sources.| Constructor and Description |
|---|
TranspilingClosureBundler() |
TranspilingClosureBundler(com.google.common.cache.Cache<Long,String> transpilationCache,
boolean inlineSourceMap)
Creates a new bundler that transpile the sources from ES6 to ES5.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
String |
getSourceMap(String path)
Subclasses that need to provide a source map for any transformed input can return it with this
method.
|
protected String |
transformInput(String js,
String path)
Template method.
|
appendInput, appendTo, appendTo, useEval, withPath, withSourceUrlpublic void appendTo(Appendable out, DependencyInfo info, com.google.common.io.CharSource content) throws IOException
ClosureBundlerappendTo in class ClosureBundlerIOExceptionprotected String transformInput(String js, String path)
ClosureBundlertransformInput(java.lang.String, java.lang.String) transpiles inputs from ES6
to ES5.)transformInput in class ClosureBundlerpublic String getSourceMap(String path)
ClosureBundlergetSourceMap in class ClosureBundlerCopyright © 2009-2016 Google. All Rights Reserved.