Package com.google.javascript.jscomp
Class Es6RewriteModulesToCommonJsModules
java.lang.Object
com.google.javascript.jscomp.Es6RewriteModulesToCommonJsModules
- All Implemented Interfaces:
CompilerPass
Rewrites an ES6 module to a CommonJS-like module for the sake of per-file transpilation +
bunlding (e.g. Closure Bundler). Output is not meant to be type checked.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Es6RewriteModulesToCommonJsModules
-
-
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
-