@modern-js/utils
Version:
A Progressive React Framework for modern web development.
46 lines (45 loc) • 1.41 kB
TypeScript
/**
* 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";
/**
* hmr socket connect path
*/
export declare const HMR_SOCK_PATH = "/webpack-hmr";
/**
* 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";
/**
* 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_EXPRESS = "@modern-js/plugin-express";
export declare const SERVER_PLUGIN_KOA = "@modern-js/plugin-koa";
export declare const SERVER_PLUGIN_SERVER = "@modern-js/plugin-server";
export declare const SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";