Class WhitespaceWrapGoogModules

java.lang.Object
com.google.javascript.jscomp.WhitespaceWrapGoogModules
All Implemented Interfaces:
CompilerPass

public class WhitespaceWrapGoogModules extends Object implements CompilerPass
Replicates the effect of ClosureBundler in whitespace-only mode and wraps goog.modules in goog.loadModule calls. See comment block below.
  • Method Details

    • process

      public void process(Node externs, Node root)
      Description copied from interface: CompilerPass
      Process the JS with root node root. Can modify the contents of each Node tree
      Specified by:
      process in interface CompilerPass
      Parameters:
      externs - Top of external JS tree
      root - Top of JS tree