JavaScriptModuleExport Class

Definition

Caution

Use Microsoft.AspNetCore.SpaServices.Extensions

Describes how to find the JavaScript code that performs prerendering.

public ref class JavaScriptModuleExport
public class JavaScriptModuleExport
[System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")]
public class JavaScriptModuleExport
type JavaScriptModuleExport = class
[<System.Obsolete("Use Microsoft.AspNetCore.SpaServices.Extensions")>]
type JavaScriptModuleExport = class
Public Class JavaScriptModuleExport
Inheritance
JavaScriptModuleExport
Attributes

Constructors

JavaScriptModuleExport(String)

Creates a new instance of JavaScriptModuleExport.

Properties

ExportName

If set, specifies the name of the CommonJS export that is the prerendering function to execute. If not set, the JavaScript module's default CommonJS export must itself be the prerendering function.

ModuleName

Specifies the path to the JavaScript module containing prerendering code.

Applies to