@single-spa/import-map-microfrontend-utils
v2.0.0
Published
Utility types and functions for import-map-microfrontend projects
Downloads
16
Keywords
Readme
import-map-microfrontend-utils
Utility types and functions for import-map-microfrontend related projects
Installation
npm i @single-spa/import-map-microfrontend-utils
Usage
import { ImportMapMicrofrontendUtils } from "@single-spa/import-map-microfrontend-utils";
const utils = new ImportMapMicrofrontendUtils({
baseOrigin: "https://cdn.example.com",
});
utils.getMicrofrontendURLPrefix("@org/navbar");
utils.getDependenciesURLPrefix();
utils.getDependenciesFolderName();
utils.getMFEsFolderName();