Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 535 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 535 Bytes

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();