UNPKG

every-plugin

Version:
21 lines 696 B
//#region src/runtime/services/normalize.d.ts /** * Normalizes a package name into the module federation remote name. * This function must produce identical results in both runtime and build contexts. * * Normalization rules: * - Convert to lowercase * - Strip a single leading '@' symbol * - Replace '/' with '_' * - Preserve hyphens and other characters * * Examples: * - "@scope/my-plugin" → "scope_my-plugin" * - "@SCOPE/Foo/Bar" → "scope_foo_bar" * - "foo/bar" → "foo_bar" * - "simple-plugin" → "simple-plugin" */ declare const getNormalizedRemoteName: (name: string) => string; //#endregion export { getNormalizedRemoteName }; //# sourceMappingURL=normalize.d.mts.map