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.
|
com.google.javascript.jscomp.transpile |
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 moduleResolutionMode) |
Constructor and Description |
---|
Es6RewriteModules(AbstractCompiler compiler,
com.google.javascript.jscomp.PreprocessorSymbolTable preprocessorSymbolTable,
boolean processCommonJsModules,
ModuleLoader.ResolutionMode moduleResolutionMode)
Creates a new Es6RewriteModules instance which can be used to rewrite ES6 modules to a
concatenable form.
|
ModuleMetadata(AbstractCompiler compiler,
boolean processCommonJsModules,
ModuleLoader.ResolutionMode moduleResolutionMode) |
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.
|
Modifier and Type | Field and Description |
---|---|
protected ModuleLoader.ResolutionMode |
BaseTranspiler.CompilerSupplier.moduleResolution |
Constructor and Description |
---|
CompilerSupplier(FeatureSet outputFeatureSet,
ModuleLoader.ResolutionMode moduleResolution,
com.google.common.collect.ImmutableList<java.lang.String> moduleRoots,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> prefixReplacements)
Accepts commonly overridden options for ES6 modules to avoid needed to subclass.
|
Copyright © 2009-2018 Google. All Rights Reserved.