UNPKG

@modern-js/server-core

Version:

A Progressive React Framework for modern web development.

18 lines (17 loc) 954 B
function createRequestHandlerConfig(userConfig) { const { output, server, security, html, source } = userConfig; return { ssr: server === null || server === void 0 ? void 0 : server.ssr, ssrByEntries: server === null || server === void 0 ? void 0 : server.ssrByEntries, nonce: security === null || security === void 0 ? void 0 : security.nonce, enableInlineScripts: output === null || output === void 0 ? void 0 : output.enableInlineScripts, enableInlineStyles: output === null || output === void 0 ? void 0 : output.enableInlineStyles, crossorigin: html === null || html === void 0 ? void 0 : html.crossorigin, scriptLoading: html === null || html === void 0 ? void 0 : html.scriptLoading, useJsonScript: server === null || server === void 0 ? void 0 : server.useJsonScript, enableAsyncEntry: source === null || source === void 0 ? void 0 : source.enableAsyncEntry }; } export { createRequestHandlerConfig };