using System;
namespace Microsoft.AspNetCore.SpaServices.Prerendering
{
///
/// Describes how to find the JavaScript code that performs prerendering.
///
public class JavaScriptModuleExport
{
///
/// Creates a new instance of .
///
/// The path to the JavaScript module containing prerendering code.
public JavaScriptModuleExport(string moduleName)
{
ModuleName = moduleName;
}
///
/// Specifies the path to the JavaScript module containing prerendering code.
///
public string ModuleName { get; private set; }
///
/// 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.
///
public string ExportName { get; set; }
///
/// Obsolete. Do not use. Instead, configure Webpack to build a Node.js-compatible bundle and reference that directly.
///
[Obsolete("Do not use. This feature will be removed. Instead, configure Webpack to build a Node.js-compatible bundle and reference that directly.")]
public string WebpackConfig { get; set; }
}
}