public enum ModuleKind extends Enum<ModuleKind>
JSweetTranspiler.setModuleKind(ModuleKind)| Enum Constant and Description |
|---|
amd
The generated code uses the
amd module kind. |
commonjs
The generated code uses
commonjs module kind, which can run
under node and be bundled for running in a Web browser. |
es2015
The generated code uses the
ES6 module import flavour. |
none
The generated code is flat and does not use modules.
|
system
The generated code uses the
system module kind. |
umd
The generated code uses the
umd (EcmaScript 6 Universal
Module Definition) module kind. |
| Modifier and Type | Method and Description |
|---|---|
static ModuleKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModuleKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleKind none
public static final ModuleKind commonjs
commonjs module kind, which can run
under node and be bundled for running in a Web browser.public static final ModuleKind amd
amd module kind. This can run on
require.js enabled Web browsers.public static final ModuleKind system
system module kind.public static final ModuleKind umd
umd (EcmaScript 6 Universal
Module Definition) module kind.public static final ModuleKind es2015
ES6 module import flavour.public static ModuleKind[] values()
for (ModuleKind c : ModuleKind.values()) System.out.println(c);
public static ModuleKind valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null