Enum Class CompilerOptions.ExperimentalForceTranspile

java.lang.Object
java.lang.Enum<CompilerOptions.ExperimentalForceTranspile>
com.google.javascript.jscomp.CompilerOptions.ExperimentalForceTranspile
All Implemented Interfaces:
Serializable, Comparable<CompilerOptions.ExperimentalForceTranspile>, Constable
Enclosing class:
CompilerOptions

public static enum CompilerOptions.ExperimentalForceTranspile extends Enum<CompilerOptions.ExperimentalForceTranspile>
Options to force transpile specific features for performance experiments.
  • Enum Constant Details

    • LET_CONST

      public static final CompilerOptions.ExperimentalForceTranspile LET_CONST
      Causes let/const to always be removed from the output featureset if present previously.
      
       For targets that set `options.setForceLetConstTranspilation(true)`:
       - if they already set <= ES5 output, no change
       - if they set >= ES6 output, then { force transpile let/const + classes + rewrite ESModules +
       isolatePolyfills + rewritePolyfills}
      
       
    • CLASS

      public static final CompilerOptions.ExperimentalForceTranspile CLASS
      Causes classes to always be removed from the output featureset if present previously.
      
       For targets that set `options.setForceClassTranspilation(true)`:
       - if they already set <= ES5 output, no change
       - if they set >= ES6 output, then { force transpile classes + rewrite ESModules +
       isolatePolyfills + rewritePolyfills}
      
       
    • ALL_EXCEPT_ASYNC_AWAIT

      public static final CompilerOptions.ExperimentalForceTranspile ALL_EXCEPT_ASYNC_AWAIT
      Transpile all features down to ES5 except ASYNC AWAIT
  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompilerOptions.ExperimentalForceTranspile valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null