@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
28 lines • 1.23 kB
TypeScript
/**
* Vite resolve.alias entries for the admin bundle.
*
* Admin alias modules resolve from @strapi/admin's closure. CodeMirror singletons resolve
* from @strapi/design-system's closure (the real consumer), tolerantly: optional/transitive
* CodeMirror packages that cannot be resolved are skipped rather than crashing the build
*
* @internal
*/
export declare const buildAdminViteResolveAliases: () => Record<string, string>;
/**
* Resolve the CodeMirror singleton aliases from @strapi/design-system's closure, skipping any
* package that cannot be resolved (e.g. optional or transitive CodeMirror packages not installed).
*
* @internal
*/
export declare const buildSingletonAliasEntries: () => Array<readonly [string, string]>;
/**
* Names of the CodeMirror singletons that actually resolve from @strapi/design-system's closure.
*
* Mirrors buildSingletonAliasEntries so optimizeDeps.include stays in lockstep with resolve.alias:
* a singleton that cannot be aliased must not be forced into pre-bundling either, or Vite chokes
* on an unresolvable optimizeDeps.include entry.
*
* @internal
*/
export declare const getResolvableSingletonModules: () => string[];
//# sourceMappingURL=admin-vite-aliases.d.ts.map