Nuxt/examples/config-extends/base/plugins/my-plugin.ts

8 lines
163 B
TypeScript

export default defineNuxtPlugin((/* nuxtApp */) => {
return {
provide: {
myPlugin: () => 'String generated from my auto-imported plugin!'
}
}
})