Package com.google.javascript.jscomp
Class Es6RelativizeImportPaths
java.lang.Object
com.google.javascript.jscomp.Es6RelativizeImportPaths
- All Implemented Interfaces:
CompilerPass
Rewrites ES6 import paths to be relative after resolving according to the compiler's module
resolver.
Useful for servers that wish to preserve ES6 modules, meaning their paths need to be valid in the browser.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Es6RelativizeImportPaths
-
-
Method Details
-
process
Description copied from interface:CompilerPass
Process the JS with root node root. Can modify the contents of each Node tree- Specified by:
process
in interfaceCompilerPass
- Parameters:
externs
- Top of external JS treeroot
- Top of JS tree
-