vuestic-ui
Version:
Vue 3 UI Framework
18 lines (17 loc) • 861 B
JavaScript
import { c as createGlobalConfig, G as GLOBAL_CONFIG } from "../global-config.mjs";
import { d as defineGlobalProperty } from "../../vue-plugin/utils/global-properties.mjs";
import { d as defineVuesticPlugin } from "../../vue-plugin/utils/define-vuestic-plugin.mjs";
const GlobalConfigPlugin = defineVuesticPlugin((config = {}) => ({
install(app) {
const globalConfig = createGlobalConfig(config);
if (config == null ? void 0 : config.componentsAll) {
console.warn("Global config -> `componentsAll` was moved to Global config -> components.all. Please replace this to make it work. More info here: https://github.com/epicmaxco/vuestic-ui/issues/1967");
}
app.provide(GLOBAL_CONFIG, globalConfig);
defineGlobalProperty(app, "$vaConfig", globalConfig);
}
}));
export {
GlobalConfigPlugin as G
};
//# sourceMappingURL=index.mjs.map