Enum SourceMapMode
- java.lang.Object
-
- java.lang.Enum<SourceMapMode>
-
- io.github.cdklabs.projen.javascript.SourceMapMode
-
- All Implemented Interfaces:
Serializable,Comparable<SourceMapMode>
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.203Z") @Stability(Experimental) public enum SourceMapMode extends Enum<SourceMapMode>
(experimental) SourceMap mode for esbuild.- See Also:
- https://esbuild.github.io/api/#sourcemap
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTH(experimental) Both sourceMap mode - If you want to have the effect of both inline and external simultaneously.DEFAULT(experimental) Default sourceMap mode - will generate a .js.map file alongside any generated .js file and add a special //# sourceMappingURL= comment to the bottom of the .js file pointing to the .js.map file.EXTERNAL(experimental) External sourceMap mode - If you want to omit the special //# sourceMappingURL= comment from the generated .js file but you still want to generate the .js.map files.INLINE(experimental) Inline sourceMap mode - If you want to insert the entire source map into the .js file instead of generating a separate .js.map file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SourceMapModevalueOf(String name)Returns the enum constant of this type with the specified name.static SourceMapMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
@Stability(Experimental) public static final SourceMapMode DEFAULT
(experimental) Default sourceMap mode - will generate a .js.map file alongside any generated .js file and add a special //# sourceMappingURL= comment to the bottom of the .js file pointing to the .js.map file.
-
EXTERNAL
@Stability(Experimental) public static final SourceMapMode EXTERNAL
(experimental) External sourceMap mode - If you want to omit the special //# sourceMappingURL= comment from the generated .js file but you still want to generate the .js.map files.
-
INLINE
@Stability(Experimental) public static final SourceMapMode INLINE
(experimental) Inline sourceMap mode - If you want to insert the entire source map into the .js file instead of generating a separate .js.map file.
-
BOTH
@Stability(Experimental) public static final SourceMapMode BOTH
(experimental) Both sourceMap mode - If you want to have the effect of both inline and external simultaneously.
-
-
Method Detail
-
values
public static SourceMapMode[] 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 (SourceMapMode c : SourceMapMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SourceMapMode valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-