@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)
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.
|
protected String |
transformInput(String js,
String path)
Template method.
|
appendInput, appendTo, appendTo, useEval, withPath, withSourceUrl
public void appendTo(Appendable out, DependencyInfo info, com.google.common.io.CharSource content) throws IOException
ClosureBundler
appendTo
in class ClosureBundler
IOException
protected String transformInput(String js, String path)
ClosureBundler
transformInput(java.lang.String, java.lang.String)
transpiles inputs from ES6
to ES5.)transformInput
in class ClosureBundler
Copyright © 2009-2016 Google. All Rights Reserved.