public static enum ModuleLoader.ResolutionMode extends java.lang.Enum<ModuleLoader.ResolutionMode>
Enum Constant and Description |
---|
BROWSER
Mimics the behavior of MS Edge.
|
BROWSER_WITH_TRANSFORMED_PREFIXES
A limited superset of BROWSER that transforms some path prefixes.
|
NODE
Uses the node module resolution algorithm.
|
WEBPACK
Uses a lookup map provided by webpack to locate modules from a numeric id used during import
|
Modifier and Type | Method and Description |
---|---|
static ModuleLoader.ResolutionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModuleLoader.ResolutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleLoader.ResolutionMode BROWSER
public static final ModuleLoader.ResolutionMode BROWSER_WITH_TRANSFORMED_PREFIXES
For example one could configure this so that "@root/" is replaced with "/my/path/to/project/" within import paths.
public static final ModuleLoader.ResolutionMode NODE
Modules which do not begin with a "." or "/" character are looked up from the appropriate node_modules folder. Includes the ability to require directories and JSON files. Exact match, then ".js", then ".json" file extensions are searched.
public static final ModuleLoader.ResolutionMode WEBPACK
public static ModuleLoader.ResolutionMode[] values()
for (ModuleLoader.ResolutionMode c : ModuleLoader.ResolutionMode.values()) System.out.println(c);
public static ModuleLoader.ResolutionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2009-2019 Google. All Rights Reserved.