mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: fix advice on adding default export (#1179)
This commit is contained in:
parent
8607d0ae4c
commit
a6071393b6
@ -106,7 +106,7 @@ Avoid the usage of `__dirname` and `__filename` as much as possible.
|
||||
|
||||
### Ensure plugins default export
|
||||
|
||||
If you inject a Nuxt plugin that does not have `export default` (such as global Vue plugins), ensure you add `export default {}` to the end of it.
|
||||
If you inject a Nuxt plugin that does not have `export default` (such as global Vue plugins), ensure you add `export default () => { }` to the end of it.
|
||||
|
||||
::code-group
|
||||
```js [Before]
|
||||
|
Loading…
Reference in New Issue
Block a user