@modern-js/server-core
Version:
A Progressive React Framework for modern web development.
18 lines (17 loc) • 1.03 kB
JavaScript
function createRequestHandlerConfig(userConfig) {
var output = userConfig.output, server = userConfig.server, security = userConfig.security, html = userConfig.html, source = userConfig.source;
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
};