public class NodeModuleResolver extends ModuleResolver
Unambiguous paths are file paths resolved from the current script. Ambiguous paths are located within the nearest node_modules folder ancestor.
Modifier and Type | Field and Description |
---|---|
static String |
JSC_BROWSER_BLACKLISTED_MARKER |
errorHandler, modulePaths, moduleRootPaths
Constructor and Description |
---|
NodeModuleResolver(com.google.common.collect.ImmutableSet<String> modulePaths,
com.google.common.collect.ImmutableList<String> moduleRootPaths,
Map<String,String> packageJsonMainEntries,
ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
String |
resolveJsModule(String scriptAddress,
String moduleAddress,
String sourcename,
int lineno,
int colno) |
String |
resolveJsModuleFile(String scriptAddress,
String moduleAddress) |
canonicalizePath, locate
public static final String JSC_BROWSER_BLACKLISTED_MARKER
@Nullable public String resolveJsModule(String scriptAddress, String moduleAddress, String sourcename, int lineno, int colno)
resolveJsModule
in class ModuleResolver
Copyright © 2009-2017 Google. All Rights Reserved.