@bleedingdev/modern-js-utils 3.2.0-ultramodern.0 → 3.2.0-ultramodern.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +3 -3
  2. package/dist/types/cli/alias.d.ts +0 -20
  3. package/dist/types/cli/applyOptionsChain.d.ts +0 -3
  4. package/dist/types/cli/commands.d.ts +0 -8
  5. package/dist/types/cli/common.d.ts +0 -9
  6. package/dist/types/cli/config.d.ts +0 -4
  7. package/dist/types/cli/constants.d.ts +0 -55
  8. package/dist/types/cli/ensure.d.ts +0 -8
  9. package/dist/types/cli/fs.d.ts +0 -7
  10. package/dist/types/cli/get/config.d.ts +0 -1
  11. package/dist/types/cli/get/data.d.ts +0 -6
  12. package/dist/types/cli/get/index.d.ts +0 -11
  13. package/dist/types/cli/index.d.ts +0 -23
  14. package/dist/types/cli/is/config.d.ts +0 -22
  15. package/dist/types/cli/is/env.d.ts +0 -8
  16. package/dist/types/cli/is/index.d.ts +0 -4
  17. package/dist/types/cli/is/project.d.ts +0 -39
  18. package/dist/types/cli/is/type.d.ts +0 -15
  19. package/dist/types/cli/logger.d.ts +0 -1
  20. package/dist/types/cli/modulePath.d.ts +0 -5
  21. package/dist/types/cli/monorepo.d.ts +0 -9
  22. package/dist/types/cli/package.d.ts +0 -5
  23. package/dist/types/cli/path.d.ts +0 -11
  24. package/dist/types/cli/port.d.ts +0 -12
  25. package/dist/types/cli/prettyInstructions.d.ts +0 -9
  26. package/dist/types/cli/require.d.ts +0 -9
  27. package/dist/types/cli/route.d.ts +0 -4
  28. package/dist/types/cli/runtimeExports.d.ts +0 -5
  29. package/dist/types/cli/tsconfig.d.ts +0 -1
  30. package/dist/types/cli/version.d.ts +0 -4
  31. package/dist/types/cli/watch.d.ts +0 -8
  32. package/dist/types/compiled.d.ts +0 -37
  33. package/dist/types/import.d.ts +0 -5
  34. package/dist/types/index.d.ts +0 -3
  35. package/dist/types/universal/constants.d.ts +0 -47
  36. package/dist/types/universal/index.d.ts +0 -1
  37. package/dist/types/universal/path.d.ts +0 -1
  38. package/dist/types/universal/pluginDagSort.d.ts +0 -1
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.2.0-ultramodern.0",
20
+ "version": "3.2.0-ultramodern.2",
21
21
  "types": "./dist/types/index.d.ts",
22
22
  "main": "./dist/cjs/index.js",
23
23
  "module": "./dist/esm/index.mjs",
@@ -150,8 +150,8 @@
150
150
  "@types/node": "^25.8.0",
151
151
  "@typescript/native-preview": "7.0.0-dev.20260516.1",
152
152
  "happy-dom": "^20.8.9",
153
- "@scripts/rstest-config": "2.66.0",
154
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.0"
153
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.2.0-ultramodern.2",
154
+ "@scripts/rstest-config": "2.66.0"
155
155
  },
156
156
  "peerDependencies": {
157
157
  "react": "^19.2.6",
@@ -1,20 +0,0 @@
1
- export type Alias = Record<string, string | string[]>;
2
- export type AliasOption = Alias | ((aliases: Alias) => Alias | void);
3
- interface NormalizedConfig {
4
- source: {
5
- alias?: AliasOption | Array<AliasOption>;
6
- };
7
- }
8
- interface IAliasConfig {
9
- absoluteBaseUrl: string;
10
- paths?: Record<string, string | string[]>;
11
- isTsPath?: boolean;
12
- isTsProject?: boolean;
13
- }
14
- export declare const mergeAlias: (alias: NormalizedConfig["source"]["alias"]) => Alias;
15
- export declare const getAliasConfig: (aliasOption: NormalizedConfig["source"]["alias"], option: {
16
- appDirectory: string;
17
- tsconfigPath: string;
18
- }) => IAliasConfig;
19
- export declare const getUserAlias: (alias?: Record<string, string | string[]>) => Record<string, string | string[]>;
20
- export {};
@@ -1,3 +0,0 @@
1
- export type Falsy = false | null | undefined | 0 | '';
2
- export declare function applyOptionsChain<T, U>(defaults: T, options?: T | ((config: T, utils?: U) => T | void) | Array<T | ((config: T, utils?: U) => T | void)> | Falsy, utils?: U, mergeFn?: typeof Object.assign): T;
3
- export declare function applyOptionsChain<T, U>(defaults: T, options: T | ((config: T, utils: U) => T | void) | Array<T | ((config: T, utils: U) => T | void)> | Falsy, utils: U, mergeFn?: typeof Object.assign): T;
@@ -1,8 +0,0 @@
1
- import type { Command } from '../../compiled/commander';
2
- export declare const getFullArgv: () => string[];
3
- export declare const getArgv: () => string[];
4
- export declare const getCommand: () => string;
5
- export declare const isDevCommand: () => boolean;
6
- export declare const deprecatedCommands: (program: Command & {
7
- commandsMap?: Map<string, Command>;
8
- }) => void;
@@ -1,9 +0,0 @@
1
- import debug from '../../compiled/debug';
2
- /**
3
- * Create debug function with unified namespace prefix.
4
- * @param scope - Custom module name of your debug function.
5
- * @returns Debug function which namespace start with modern-js:.
6
- */
7
- export declare const createDebugger: (scope: string) => debug.Debugger;
8
- export declare const clearConsole: () => void;
9
- export declare const wait: (time?: number) => Promise<unknown>;
@@ -1,4 +0,0 @@
1
- /**
2
- * When merging config, some properties prefer `override` rather than `merge to array`
3
- */
4
- export declare const isOverriddenConfigKey: (key: string) => boolean;
@@ -1,55 +0,0 @@
1
- import type { InternalPlugins } from '@modern-js/types';
2
- export { DEFAULT_ENTRY_NAME, MAIN_ENTRY_NAME, NESTED_ROUTE_SPEC_FILE, ROUTE_SPEC_FILE, SERVER_BUNDLE_DIRECTORY, SERVER_PLUGIN_BFF, SERVER_PLUGIN_POLYFILL, SERVER_RENDER_FUNCTION_NAME, } from '../universal/constants';
3
- export declare const JS_EXTENSIONS: string[];
4
- /**
5
- * server side bundles directory, which relative to dist.
6
- */
7
- export declare const SERVER_WORKER_BUNDLE_DIRECTORY = "worker";
8
- /**
9
- * entry name pattern used for ajv pattern properties.
10
- */
11
- export declare const ENTRY_NAME_PATTERN = "^[a-zA-Z0-9_-]+$";
12
- /**
13
- * loadbale manifest json file
14
- */
15
- export declare const LOADABLE_STATS_FILE = "loadable-stats.json";
16
- /**
17
- * internal specified folder
18
- */
19
- export declare const API_DIR = "api";
20
- /**
21
- * Default BFF API prefix
22
- */
23
- export declare const DEFAULT_API_PREFIX = "/api";
24
- export declare const SERVER_DIR = "server";
25
- export declare const SHARED_DIR = "shared";
26
- /**
27
- * Project root tsconfig filename.
28
- */
29
- export declare const TS_CONFIG_FILENAME = "tsconfig.json";
30
- /**
31
- * Modern.config.ts cached dir
32
- */
33
- export declare const CONFIG_CACHE_DIR = "./node_modules/.cache/bundle-require";
34
- export declare const CONFIG_FILE_EXTENSIONS: string[];
35
- /**
36
- * Serialized config path
37
- */
38
- export declare const OUTPUT_CONFIG_FILE = "modern.config.json";
39
- /**
40
- * Default runtime config filename
41
- */
42
- export declare const DEFAULT_RUNTIME_CONFIG = "modern.runtime";
43
- /**
44
- * Routes manifest filename
45
- */
46
- export declare const ROUTE_MANIFEST_FILE = "routes-manifest.json";
47
- /**
48
- * directory name for loader routes
49
- */
50
- export declare const LOADER_ROUTES_DIR = "loader-routes";
51
- /**
52
- * default host for dev
53
- */
54
- export declare const DEFAULT_DEV_HOST = "0.0.0.0";
55
- export declare const INTERNAL_RUNTIME_PLUGINS: InternalPlugins;
@@ -1,8 +0,0 @@
1
- /**
2
- * ensure absolute file path.
3
- * @param base - Base path to resolve relative from.
4
- * @param filePath - Absolute or relative file path.
5
- * @returns Resolved absolute file path.
6
- */
7
- export declare const ensureAbsolutePath: (base: string, filePath: string) => string;
8
- export declare const ensureArray: <T>(params: T | T[]) => T[];
@@ -1,7 +0,0 @@
1
- /**
2
- * Find first already exists file.
3
- * @param files - Absolute file paths with extension.
4
- * @returns The file path if exists, or false if no file exists.
5
- */
6
- export declare const findExists: (files: string[]) => string | false;
7
- export declare const emptyDir: (dir: string) => Promise<void>;
@@ -1 +0,0 @@
1
- export declare const getEntryOptions: <T>(name: string, isMainEntry: boolean, baseOptions?: T, optionsByEntries?: Record<string, T>, packageName?: string) => T | undefined;
@@ -1,6 +0,0 @@
1
- import type { InternalPlugins } from '@modern-js/types';
2
- export declare function getPackageManager(cwd?: string): Promise<"pnpm" | "npm" | "yarn">;
3
- export declare const getCoreJsVersion: (corejsPkgPath: string) => string;
4
- export declare function getInternalPlugins(appDirectory: string, internalPlugins?: InternalPlugins): string[];
5
- export declare const readTsConfig: (root: string) => any;
6
- export declare const readTsConfigByFile: (filename: string) => any;
@@ -1,11 +0,0 @@
1
- export declare const getServerConfig: (appDirectory: string, configFile: string) => Promise<string | false>;
2
- /**
3
- * Transform the metaName
4
- * @param metaName The name of framework, the default value is 'modern-js'
5
- * @returns
6
- * modern-js -> modern
7
- */
8
- export declare const getMeta: (metaName?: string) => string;
9
- export declare const getTargetDir: (from: string, baseDir: string, targetBaseDir: string) => string;
10
- export * from './config';
11
- export * from './data';
@@ -1,23 +0,0 @@
1
- export * from './alias';
2
- export * from './applyOptionsChain';
3
- export * from './commands';
4
- export * from './common';
5
- export * from './config';
6
- export * from './constants';
7
- export * from './ensure';
8
- export * from './fs';
9
- export * from './get';
10
- export * from './is';
11
- export * from './logger';
12
- export * from './modulePath';
13
- export * from './monorepo';
14
- export * from './package';
15
- export * from './path';
16
- export * from './port';
17
- export * from './prettyInstructions';
18
- export * from './require';
19
- export * from './route';
20
- export * from './runtimeExports';
21
- export * from './tsconfig';
22
- export * from './version';
23
- export * from './watch';
@@ -1,22 +0,0 @@
1
- interface EntryPoint {
2
- entryName: string;
3
- }
4
- /**
5
- * Is SSR project
6
- *
7
- * @param config - User config.
8
- * @returns Whether to use server side render.
9
- */
10
- export declare const isSSR: (config: any) => boolean;
11
- export declare const isUseSSRBundle: (config: any) => boolean;
12
- export declare const isUseRsc: (config: any) => boolean;
13
- /**
14
- * Is Worker project
15
- *
16
- * @param config - User config.
17
- * @returns Whether to use worker deploy.
18
- */
19
- export declare const isServiceWorker: (config: any) => boolean;
20
- export declare const isSSGEntry: (config: any, entryName: string, entrypoints: EntryPoint[]) => any;
21
- export declare const isSingleEntry: (entrypoints: EntryPoint[], mainEntryName?: string) => boolean;
22
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Get the current NODE_ENV, or default to 'development' if not set.
3
- */
4
- export declare const getNodeEnv: () => string;
5
- export declare const isDev: () => boolean;
6
- export declare const isProd: () => boolean;
7
- export declare const isTest: () => boolean;
8
- export declare const isBrowser: () => boolean;
@@ -1,4 +0,0 @@
1
- export * from './config';
2
- export * from './env';
3
- export * from './project';
4
- export * from './type';
@@ -1,39 +0,0 @@
1
- /**
2
- * Check if the package name is in dependencies or devDependencies.
3
- *
4
- * @param appDirectory - Project root directory.
5
- * @param name - Package name.
6
- * @returns True if the name is in dependencies or devDependencies, false otherwise.
7
- */
8
- export declare const isDepExists: (appDirectory: string, name: string) => boolean;
9
- /**
10
- * Try to resolve npm package, return true if package is installed.
11
- */
12
- export declare const isPackageInstalled: (name: string, resolvePaths: string | string[]) => boolean;
13
- /**
14
- * Check is api only project
15
- * 1. env --api-only
16
- * 2. exist ${apiDir}/ && not exist ${entryDir}/
17
- *
18
- * @param appDirectory
19
- * @param entryDir default 'src'
20
- * @param apiDir default 'api'
21
- * @returns boolean
22
- */
23
- export declare const isApiOnly: (appDirectory: string, entryDir?: string, apiDir?: string) => Promise<boolean>;
24
- export declare const isWebOnly: () => Promise<boolean>;
25
- export declare const isVersionBeyond17: (version: string) => boolean;
26
- export declare const getReactVersion: (cwd: string) => string | false;
27
- /**
28
- * @deprecated Use {@link isSupportAutomaticJsx} to check if the project supports automatic JSX instead.
29
- */
30
- export declare const isBeyondReact17: (cwd: string) => boolean;
31
- export declare const isSupportAutomaticJsx: (cwd: string) => boolean;
32
- export declare const isReact18: (cwd?: string) => boolean;
33
- /**
34
- * Is typescript project.
35
- *
36
- * @param root - App directory.
37
- * @returns Whether to use typescript.
38
- */
39
- export declare const isTypescript: (root: string) => boolean;
@@ -1,15 +0,0 @@
1
- export declare function isString(str: any): str is string;
2
- export declare function isUndefined(obj: any): obj is undefined;
3
- export declare function isArray(obj: unknown): obj is any[];
4
- export declare function isFunction(func: any): func is Function;
5
- export declare function isObject(obj: unknown): obj is Record<string, any>;
6
- export declare function isPlainObject(obj: unknown): obj is Record<string, any>;
7
- export declare function isPromise(obj: any): obj is Promise<any>;
8
- export declare function isRegExp(obj: any): obj is RegExp;
9
- /**
10
- * Is Empty object
11
- *
12
- * @param o - Any object.
13
- * @returns Whether it is empty object.
14
- */
15
- export declare const isEmpty: (o: Record<string, unknown>) => boolean;
@@ -1 +0,0 @@
1
- export { createLogger, type Logger, logger } from 'rslog';
@@ -1,5 +0,0 @@
1
- import type { MatchPath } from '../../compiled/tsconfig-paths';
2
- export declare const SOURCE_EXTENSIONS: string[];
3
- export declare const JS_LIKE_EXTENSION_RE: RegExp;
4
- export declare const findSourceEntry: (resolvedPath: string) => string | undefined;
5
- export declare const findMatchedSourcePath: (matchPath: MatchPath, specifier: string) => string | undefined;
@@ -1,9 +0,0 @@
1
- export declare const isLerna: (root: string) => boolean;
2
- export declare const isYarnWorkspaces: (root: string) => boolean;
3
- export declare const isPnpmWorkspaces: (root: string) => boolean;
4
- export declare const isMonorepo: (root: string) => boolean;
5
- export declare const findMonorepoRoot: (appDirectory: string, maxDepth?: number) => string | undefined;
6
- export declare const getMonorepoPackages: (root: string) => {
7
- name: string;
8
- path: string;
9
- }[];
@@ -1,5 +0,0 @@
1
- export declare function getPnpmVersion(): Promise<string>;
2
- export declare function canUseNpm(): Promise<boolean>;
3
- export declare function canUseYarn(): Promise<boolean>;
4
- export declare function canUsePnpm(): Promise<boolean>;
5
- export declare function removeModuleSyncFromExports(exports: Record<string, any>): Record<string, any>;
@@ -1,11 +0,0 @@
1
- export declare const isPathString: (test: string) => boolean;
2
- export declare const isRelativePath: (test: string) => boolean;
3
- export declare const normalizeOutputPath: (s: string) => string;
4
- export declare const normalizeToPosixPath: (p: string | undefined) => string;
5
- export declare const getTemplatePath: (prefix?: string) => string;
6
- export declare function getRealTemporaryDirectory(): string | null;
7
- export declare function splitPathString(str: string): string[];
8
- export declare const removeLeadingSlash: (s: string) => string;
9
- export declare const removeTailSlash: (s: string) => string;
10
- export declare const removeSlash: (s: string) => string;
11
- export declare function formatImportPath(str: string): string;
@@ -1,12 +0,0 @@
1
- /**
2
- * Get available free port.
3
- * @param port - Current port want to use.
4
- * @param tryLimits - Maximum number of retries.
5
- * @param strictPort - Whether to throw an error when the port is occupied.
6
- * @returns Available port number.
7
- */
8
- export declare const getPort: (expectPort: string | number, { tryLimits, strictPort, slient, }?: {
9
- tryLimits?: number;
10
- strictPort?: boolean;
11
- slient?: boolean;
12
- }) => Promise<number>;
@@ -1,9 +0,0 @@
1
- export type AddressUrl = {
2
- label: string;
3
- url: string;
4
- };
5
- export declare const getAddressUrls: (protocol: string | undefined, port: number, host?: string) => {
6
- label: string;
7
- url: string;
8
- }[];
9
- export declare const prettyInstructions: (appContext: any, config: any) => string;
@@ -1,9 +0,0 @@
1
- export declare function compatibleRequire(path: string, interop?: boolean): Promise<any>;
2
- export declare function loadFromProject(moduleName: string, appDir: string): Promise<any>;
3
- export declare const dynamicImport: Function;
4
- export declare const requireExistModule: (filename: string, opt?: {
5
- extensions?: string[];
6
- interop?: boolean;
7
- }) => Promise<any>;
8
- export declare const cleanRequireCache: (filelist: string[]) => void;
9
- export declare const tryResolve: (name: string, ...resolvePath: string[]) => string;
@@ -1,4 +0,0 @@
1
- import type { NestedRouteForCli, PageRoute } from '@modern-js/types';
2
- export declare function filterRoutesForServer(routes: (NestedRouteForCli | PageRoute)[]): (NestedRouteForCli | PageRoute)[];
3
- export declare function filterRoutesLoader(routes: (NestedRouteForCli | PageRoute)[]): (NestedRouteForCli | PageRoute)[];
4
- export declare function markRoutes(routes: (NestedRouteForCli | PageRoute)[], routeIds: string[]): (NestedRouteForCli | PageRoute)[];
@@ -1,5 +0,0 @@
1
- export declare const createRuntimeExportsUtils: (internalDirectory: string, filename: string) => {
2
- addExport(exportStatement: string): void;
3
- getPath(): string;
4
- };
5
- export type RuntimeExportsUtils = ReturnType<typeof createRuntimeExportsUtils>;
@@ -1 +0,0 @@
1
- export declare const resolveServerTsconfig: (appDirectory: string, configuredPath?: string) => string;
@@ -1,4 +0,0 @@
1
- export declare function isVersionAtLeast1819(): boolean;
2
- export declare function isVersionAtLeast18(): boolean;
3
- export declare function isVersionAtLeast22(): boolean;
4
- export declare function isVersionAtLeast20(): boolean;
@@ -1,8 +0,0 @@
1
- export type WatchChangeTypeValueT = 'add' | 'unlink' | 'change';
2
- export declare const WatchChangeType: Record<'ADD' | 'UNLINK' | 'CHANGE', WatchChangeTypeValueT>;
3
- type RunTaskType = (option: {
4
- changedFilePath: string;
5
- changeType: WatchChangeTypeValueT;
6
- }) => void | Promise<void>;
7
- export declare const watch: (watchDir: string | string[], runTask: RunTaskType, ignored?: (string | RegExp)[]) => import("../../../compiled/chokidar/types").FSWatcher;
8
- export {};
@@ -1,37 +0,0 @@
1
- export { default as address } from '../compiled/address';
2
- export { default as browserslist } from '../compiled/browserslist';
3
- export { default as chalk } from '../compiled/chalk';
4
- export { Command, program } from '../compiled/commander';
5
- export { default as debug } from '../compiled/debug';
6
- export { default as dotenv } from '../compiled/dotenv';
7
- export { default as dotenvExpand } from '../compiled/dotenv-expand';
8
- export { default as execa } from '../compiled/execa';
9
- export { default as fastGlob } from '../compiled/fast-glob';
10
- export { default as filesize } from '../compiled/filesize';
11
- export { default as fs } from '../compiled/fs-extra';
12
- export { default as glob } from '../compiled/glob';
13
- export { default as globby } from '../compiled/globby';
14
- export { default as gzipSize } from '../compiled/gzip-size';
15
- export { default as yaml } from '../compiled/js-yaml';
16
- export { default as json5 } from '../compiled/json5';
17
- export { default as lodash } from '../compiled/lodash';
18
- export { default as minimist } from '../compiled/minimist';
19
- export { nanoid } from '../compiled/nanoid';
20
- export { default as ora } from '../compiled/ora';
21
- export { default as pkgUp } from '../compiled/pkg-up/index.js';
22
- export { default as semver } from '../compiled/semver';
23
- export { default as signale } from '../compiled/signale';
24
- export { default as slash } from '../compiled/slash';
25
- export { default as stripAnsi } from '../compiled/strip-ansi';
26
- export { default as upath } from '../compiled/upath';
27
- export { default as urlJoin } from '../compiled/url-join';
28
- import _signale from '../compiled/signale';
29
- export declare const Signale: _signale.SignaleConstructor;
30
- export type { FSWatcher, WatchOptions } from '../compiled/chokidar';
31
- export type { ExecaError } from '../compiled/execa';
32
- export type { IOptions as GlobOptions } from '../compiled/glob';
33
- export type { GlobbyOptions } from '../compiled/globby';
34
- export type { SignaleOptions } from '../compiled/signale';
35
- export declare const mime: typeof import('../compiled/mime-types');
36
- export declare const chokidar: typeof import('../compiled/chokidar');
37
- export declare const inquirer: typeof import('../compiled/inquirer');
@@ -1,5 +0,0 @@
1
- declare const lazy: (moduleName: string, getRequireFn: () => (id: string) => unknown) => any;
2
- export { lazy as lazyImport };
3
- export declare const Import: {
4
- lazy: (moduleName: string, getRequireFn: () => (id: string) => unknown) => any;
5
- };
@@ -1,3 +0,0 @@
1
- export * from './cli';
2
- export * from './compiled';
3
- export * from './import';
@@ -1,47 +0,0 @@
1
- /**
2
- * Property mounted on window that describes route manifest
3
- */
4
- export declare const ROUTE_MANIFEST = "_MODERNJS_ROUTE_MANIFEST";
5
- /**
6
- * Property mounted on window that record all route modules
7
- */
8
- export declare const ROUTE_MODULES = "_routeModules";
9
- /**
10
- * html placeholder
11
- */
12
- export declare const HTML_CHUNKSMAP_SEPARATOR = "<!--<?- chunksMap.js ?>-->";
13
- /**
14
- * reporter name for server loader
15
- */
16
- export declare const LOADER_REPORTER_NAME = "server-loader";
17
- /**
18
- * route specification file
19
- */
20
- export declare const ROUTE_SPEC_FILE = "route.json";
21
- /**
22
- * Front-end routing metadata
23
- */
24
- export declare const NESTED_ROUTE_SPEC_FILE = "nestedRoutes.json";
25
- /**
26
- * main entry name
27
- */
28
- export declare const MAIN_ENTRY_NAME = "main";
29
- /**
30
- * default entry name
31
- */
32
- export declare const DEFAULT_ENTRY_NAME = "index";
33
- /**
34
- * server side bundles directory, which relative to dist.
35
- */
36
- export declare const SERVER_BUNDLE_DIRECTORY = "bundles";
37
- /**
38
- * SSR server render function name
39
- */
40
- export declare const SERVER_RENDER_FUNCTION_NAME = "serverRender";
41
- export declare const SERVER_PLUGIN_BFF = "@modern-js/plugin-bff";
42
- export declare const SERVER_PLUGIN_POLYFILL = "@modern-js/plugin-polyfill";
43
- /**
44
- * React useId identifier prefix for SSR hydration consistency
45
- * Ensures server and client generate the same ID prefixes
46
- */
47
- export declare const SSR_HYDRATION_ID_PREFIX = "modern-js-";
@@ -1 +0,0 @@
1
- export { cutNameByHyphen } from './path';
@@ -1 +0,0 @@
1
- export declare const cutNameByHyphen: (s: string) => string;
@@ -1 +0,0 @@
1
- export declare const pluginDagSort: <P extends Record<string, any>>(plugins: P[], key?: string, preKey?: string, postKey?: string) => P[];