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

8 lines
163 B
TypeScript
Raw Permalink Normal View History

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