Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.deps |
Analyzes information about dependencies between files.
|
Modifier and Type | Method and Description |
---|---|
ModuleLoader.ResolutionMode |
CompilerOptions.getModuleResolutionMode() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
ProcessCommonJSModules.getCommonJsImportPath(Node requireCall,
ModuleLoader.ResolutionMode resolutionMode) |
static boolean |
ProcessCommonJSModules.isCommonJsDynamicImportCallback(Node n,
ModuleLoader.ResolutionMode resolutionMode)
Recognize if a node is a dynamic module import.
|
static boolean |
ProcessCommonJSModules.isCommonJsExport(NodeTraversal t,
Node export,
ModuleLoader.ResolutionMode resolutionMode)
Recognize if a node is a module export.
|
static boolean |
ProcessCommonJSModules.isCommonJsImport(Node requireCall,
ModuleLoader.ResolutionMode resolutionMode)
Recognize if a node is a module import.
|
void |
CompilerOptions.setModuleResolutionMode(ModuleLoader.ResolutionMode mode) |
Modifier and Type | Method and Description |
---|---|
static ModuleLoader.ResolutionMode |
ModuleLoader.ResolutionMode.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModuleLoader.ResolutionMode[] |
ModuleLoader.ResolutionMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.PathResolver pathResolver,
ModuleLoader.ResolutionMode resolutionMode) |
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.PathResolver pathResolver,
ModuleLoader.ResolutionMode resolutionMode,
java.util.Map<java.lang.String,java.lang.String> lookupMap)
Creates an instance of the module loader which can be used to locate ES6 and CommonJS modules.
|
ModuleLoader(ErrorHandler errorHandler,
java.lang.Iterable<java.lang.String> moduleRoots,
java.lang.Iterable<? extends DependencyInfo> inputs,
ModuleLoader.ResolutionMode resolutionMode) |
Copyright © 2009-2018 Google. All Rights Reserved.