MicroApp Integration Guide
Welcome! This guide provides step-by-step instructions for integrating and developing your @microtsm/vue MicroApp within a single-spa application.
Local Development
To develop your MicroApp locally, follow these steps:
2. Open Single-Spa App
Open your single-spa application in a web browser. This is the primary application that will host and manage your MicroApp.
3. Enable Dev Tools
Enable your browser's development tools. This will allow you to inspect elements, debug JavaScript, and monitor network requests for your MicroApp.
localStorage.setItem('devtools',
true);
4. Activate Local Instance
Activate your local MicroApp instance by pasting the copied URL into the single-spa application's import map or configuration.
Standalone Mode with MicroTSM CLI
To start developing your MicroApp locally, use the MicroTSM CLI which provides a streamlined development experience powered by Vite. Run:
This command will start the development server with hot module replacement (HMR) enabled, allowing you to see your changes instantly.