Class TranspilerBuilder

java.lang.Object
com.google.javascript.jscomp.transpile.TranspilerBuilder

public final class TranspilerBuilder extends Object
Basic Transpiler implementation for outputting ES5 code.
  • Method Details

    • toEs5

      public static TranspilerBuilder toEs5()
      Returns a new TranspilerBuilder that transpiles down to ES5.
    • caching

      @CheckReturnValue public TranspilerBuilder 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

      @CheckReturnValue public TranspilerBuilder caching(String spec)
      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

      public Transpiler build()
      Returns the built Transpiler.