JSRuntimeContext.RequireFunction property
Gets or sets the require() function, that supports synchronously importing CommonJS modules.
C#
public JSFunction RequireFunction { get; set; }
Remarks
Managed-host initialization will typically pass in the require function.
See Also
- struct JSFunction
- class JSRuntimeContext
- namespace Microsoft.JavaScript.NodeApi.Interop