mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
03d33dfdef
* chore(examples): add `plugins` example * Update examples/with-plugins/plugins/my-plugin.ts Co-authored-by: Daniel Roe <daniel@roe.dev> * chore(examples): remove unused variable * fix: updates post-review * Update examples/with-plugins/plugins/my-plugin.ts Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: pooya parsa <pyapar@gmail.com>
8 lines
163 B
TypeScript
8 lines
163 B
TypeScript
export default defineNuxtPlugin((/* nuxtApp */) => {
|
|
return {
|
|
provide: {
|
|
myPlugin: () => 'String generated from my auto-imported plugin!'
|
|
}
|
|
}
|
|
})
|