Enum CompilerOptions.ExperimentalForceTranspile

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ALL_EXCEPT_ASYNC_AWAIT
      Transpile all features down to ES5 except ASYNC AWAIT
      CLASS
      Causes classes to always be removed from the output featureset if present previously.
      LET_CONST
      Causes let/const to always be removed from the output featureset if present previously.
    • Enum Constant Detail

      • 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}
        
         
    • Method Detail

      • values

        public static CompilerOptions.ExperimentalForceTranspile[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CompilerOptions.ExperimentalForceTranspile c : CompilerOptions.ExperimentalForceTranspile.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CompilerOptions.ExperimentalForceTranspile valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null