public class ModuleLoader.ModulePath extends Object
Modifier and Type | Method and Description |
---|---|
ModuleLoader.ModulePath |
resolveCommonJsModule(String requireName)
Find a CommonJS module
requireName . |
ModuleLoader.ModulePath |
resolveEs6Module(String moduleName)
Find an ES6 module
moduleName relative to context . |
String |
toJSIdentifier()
Turns a filename into a JS identifier that can be used in rewritten code.
|
String |
toModuleName()
Turns a filename into a JS identifier that is used for moduleNames in
rewritten code.
|
String |
toString() |
public String toJSIdentifier()
public String toModuleName()
public ModuleLoader.ModulePath resolveCommonJsModule(String requireName)
requireName
. See
https://nodejs.org/api/modules.html#modules_all_togethernull
if not found.public ModuleLoader.ModulePath resolveEs6Module(String moduleName)
moduleName
relative to context
.null
if not found.Copyright © 2009-2016 Google. All Rights Reserved.