public final class ClosureBundler
extends java.lang.Object
Constructor and Description |
---|
ClosureBundler() |
ClosureBundler(Transpiler transpiler) |
ClosureBundler(Transpiler transpiler,
Transpiler es6ModuleTranspiler) |
Modifier and Type | Method and Description |
---|---|
static void |
appendInput(java.lang.Appendable out,
DependencyInfo info,
java.lang.String contents)
Append the contents of the string to the supplied appendable.
|
void |
appendRuntimeTo(java.lang.Appendable out) |
void |
appendTo(java.lang.Appendable out,
DependencyInfo info,
com.google.common.io.CharSource content)
Append the contents of the CharSource to the supplied appendable.
|
void |
appendTo(java.lang.Appendable out,
DependencyInfo info,
java.io.File content,
java.nio.charset.Charset contentCharset)
Append the contents of the file to the supplied appendable.
|
void |
appendTo(java.lang.Appendable out,
DependencyInfo info,
java.lang.String content)
Append the contents of the string to the supplied appendable.
|
java.lang.String |
getSourceMap(java.lang.String path)
Subclasses that need to provide a source map for any transformed input can return it with this
method.
|
ClosureBundler |
useEval(boolean useEval) |
ClosureBundler |
withEs6ModuleTranspiler(Transpiler newEs6ModuleTranspiler) |
ClosureBundler |
withPath(java.lang.String newPath) |
ClosureBundler |
withSourceUrl(java.lang.String newSourceUrl) |
ClosureBundler |
withTranspiler(Transpiler newTranspiler) |
ClosureBundler |
withTranspilers(Transpiler newTranspiler,
Transpiler newEs6ModuleTranspiler) |
public ClosureBundler()
public ClosureBundler(Transpiler transpiler)
public ClosureBundler(Transpiler transpiler, Transpiler es6ModuleTranspiler)
public ClosureBundler withTranspilers(Transpiler newTranspiler, Transpiler newEs6ModuleTranspiler)
public ClosureBundler withTranspiler(Transpiler newTranspiler)
public ClosureBundler withEs6ModuleTranspiler(Transpiler newEs6ModuleTranspiler)
public final ClosureBundler useEval(boolean useEval)
public final ClosureBundler withSourceUrl(java.lang.String newSourceUrl)
public final ClosureBundler withPath(java.lang.String newPath)
public static void appendInput(java.lang.Appendable out, DependencyInfo info, java.lang.String contents) throws java.io.IOException
java.io.IOException
public void appendTo(java.lang.Appendable out, DependencyInfo info, java.lang.String content) throws java.io.IOException
java.io.IOException
public void appendTo(java.lang.Appendable out, DependencyInfo info, java.io.File content, java.nio.charset.Charset contentCharset) throws java.io.IOException
java.io.IOException
public void appendTo(java.lang.Appendable out, DependencyInfo info, com.google.common.io.CharSource content) throws java.io.IOException
java.io.IOException
public void appendRuntimeTo(java.lang.Appendable out) throws java.io.IOException
java.io.IOException
public java.lang.String getSourceMap(java.lang.String path)
Copyright © 2009-2018 Google. All Rights Reserved.