UNPKG

@modern-js/utils

Version:

A Progressive React Framework for modern web development.

48 lines (47 loc) 1.38 kB
/** * Property mounted on window that describes route manifest */ export declare const ROUTE_MANIFEST = "_MODERNJS_ROUTE_MANIFEST"; /** * Property mounted on window that record all route modules */ export declare const ROUTE_MODULES = "_routeModules"; /** * html placeholder */ export declare const HTML_CHUNKSMAP_SEPARATOR = "<!--<?- chunksMap.js ?>-->"; /** * reporter name for server loader */ export declare const LOADER_REPORTER_NAME = "server-loader"; /** * route specification file */ export declare const ROUTE_SPEC_FILE = "route.json"; /** * Front-end routing metadata */ export declare const NESTED_ROUTE_SPEC_FILE = "nestedRoutes.json"; /** * main entry name */ export declare const MAIN_ENTRY_NAME = "main"; /** * default entry name */ export declare const DEFAULT_ENTRY_NAME = "index"; /** * server side bundles directory, which relative to dist. */ export declare const SERVER_BUNDLE_DIRECTORY = "bundles"; /** * SSR server render function name */ export declare const SERVER_RENDER_FUNCTION_NAME = "serverRender"; export declare const SERVER_PLUGIN_BFF = "@modern-js/plugin-bff"; export declare const SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill"; /** * React useId identifier prefix for SSR hydration consistency * Ensures server and client generate the same ID prefixes */ export declare const SSR_HYDRATION_ID_PREFIX = "modern-js-";