public final class ES6ModuleLoader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FILENAME_PREFIX
The default module root, the current directory.
|
| Constructor and Description |
|---|
ES6ModuleLoader(List<String> moduleRoots,
Iterable<CompilerInput> inputs)
Creates an instance of the module loader which can be used to locate ES6 and CommonJS modules.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
toModuleName(URI filename)
Turns a filename into a JS identifier that is used for moduleNames in
rewritten code.
|
public static final String DEFAULT_FILENAME_PREFIX
public ES6ModuleLoader(List<String> moduleRoots, Iterable<CompilerInput> inputs)
moduleRoots - The root directories to locate modules in.inputs - All inputs to the compilation process.Copyright © 2009-2015 Google. All Rights Reserved.