22 lines
481 B
TypeScript
22 lines
481 B
TypeScript
|
import { defineNuxtModule, addComponent } from "@nuxt/kit";
|
||
|
import { resolve } from "path";
|
||
|
|
||
|
export default defineNuxtModule({
|
||
|
meta: {
|
||
|
name: "my-module",
|
||
|
configKey: "myModule",
|
||
|
},
|
||
|
setup() {
|
||
|
// Register the component globally
|
||
|
addComponent({
|
||
|
name: "MlArror",
|
||
|
filePath: resolve(
|
||
|
__dirname,
|
||
|
"MlArror.vue",
|
||
|
"./components/Ml/Accordion/MlAccordionBase.vue",
|
||
|
"./components/Ml/Button/MlButton.vue"
|
||
|
),
|
||
|
});
|
||
|
},
|
||
|
});
|