Skip to main content

Plugin dependency

Plugins are allowed to depend on each other, and mini-star will automatically handle the topological ordering of plugin dependencies.

How to use


import Swal from 'sweetalert2';

export function alert(text: string) {;


import { alert as myAlert } from '@plugins/alert';

console.log('myAlert', myAlert);
myAlert('Test Alert');

Custom plugin address auto-completion logic

Custom configuration at runtime using pluginUrlPrefix or pluginUrlBuilder

import { initMiniStar } from 'mini-star';

pluginUrlPrefix: '/path/to/pluginDir'
import { initMiniStar } from 'mini-star';

pluginUrlBuilder: (pluginName: string) => '/path/to/pluginDir'