Class TranspilerBuilder
java.lang.Object
com.google.javascript.jscomp.transpile.TranspilerBuilder
Basic Transpiler implementation for outputting ES5 code.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the built Transpiler.caching()
Returns a TranspilerBuilder with cached transpilations, using the default cache settings (maximum size of 10,000).caching
(com.google.common.cache.CacheBuilder<Object, ? super TranspileResult> builder) Returns a TranspilerBuilder with cached transpilations, using the given cache builder.Returns a TranspilerBuilder with cached transpilations, using the given cache spec.static TranspilerBuilder
toEs5()
Returns a new TranspilerBuilder that transpiles down to ES5.
-
Method Details
-
toEs5
Returns a new TranspilerBuilder that transpiles down to ES5. -
caching
Returns a TranspilerBuilder with cached transpilations, using the default cache settings (maximum size of 10,000). Note that the builder itself is not changed. -
caching
Returns a TranspilerBuilder with cached transpilations, using the given cache spec. Note that the builder itself is not changed. -
caching
@CheckReturnValue public TranspilerBuilder caching(com.google.common.cache.CacheBuilder<Object, ? super TranspileResult> builder) Returns a TranspilerBuilder with cached transpilations, using the given cache builder. Note that the builder itself is not changed. -
build
Returns the built Transpiler.
-