C# Class Uglify.RequireDefinition

The class that implements node's require() function.
Mostrar archivo Open project: asbjornu/Uglify.NET Class Usage Examples

Public Methods

Method Description
Define ( ) : void

Defines the require() function as a global in the current context.

RequireDefinition ( CSharp context, Uglify.ResourceHelper resourceHelper ) : System

Initializes a new instance of the RequireDefinition class.

Private Methods

Method Description
Execute ( string file, string code, CommonObject exports ) : void
Normalize ( string file ) : string
Require ( string file ) : CommonObject

Method Details

Define() public method

Defines the require() function as a global in the current context.
public Define ( ) : void
return void

RequireDefinition() public method

Initializes a new instance of the RequireDefinition class.
public RequireDefinition ( CSharp context, Uglify.ResourceHelper resourceHelper ) : System
context CSharp The context.
resourceHelper Uglify.ResourceHelper The resource helper.
return System