Class DependencyOptions

java.lang.Object
com.google.javascript.jscomp.DependencyOptions
All Implemented Interfaces:
Serializable

@Immutable public abstract class DependencyOptions extends Object implements Serializable
Options for how to manage dependencies between input files.

Dependency information is pulled out from the JS code by looking for import and export primitives (like ES import and export statements, Closure Library's goog.module, goog.provide and goog.require calls, or CommonJS require calls). The compiler can optionally use this information to sort input files in dependency order and/or prune unnecessary input files.

Also see CodingConvention.extractClassNameIfProvide(Node, Node) and CodingConvention.extractClassNameIfRequire(Node, Node), which affect what the compiler considers to be goog.provide and goog.require statements.

See Also: