Skip to content

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

Released under the MIT license