File tree Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Expand file tree Collapse file tree 1 file changed +21
-18
lines changed Original file line number Diff line number Diff line change @@ -143,25 +143,28 @@ import * as directives from 'quasar/src/directives.js'
143
143
144
144
${ css }
145
145
146
- export default defineNuxtPlugin((nuxtApp) => {
147
- const includes = {
148
- directives,
149
- plugins: { ${ plugins } },
150
- config: ${ config } ,
146
+ export default defineNuxtPlugin({
147
+ name: 'nuxt:quasar-install',
148
+ setup(nuxtApp) {
149
+ const includes = {
150
+ directives,
151
+ plugins: { ${ plugins } },
152
+ config: ${ config } ,
153
+ }
154
+
155
+ nuxtApp.vueApp.use({
156
+ version: ${ __QUASAR_VERSION__ } ,
157
+ install(app, opts) {
158
+ if(import.meta.server) {
159
+ installQ(app, {...opts, ...includes}, nuxtApp.ssrContext.event.node)
160
+ } else {
161
+ installQ(app, {...opts, ...includes})
162
+ }
163
+ },
164
+ lang,
165
+ iconSet
166
+ })
151
167
}
152
-
153
- nuxtApp.vueApp.use({
154
- version: ${ __QUASAR_VERSION__ } ,
155
- install(app, opts) {
156
- if(import.meta.server) {
157
- installQ(app, {...opts, ...includes}, nuxtApp.ssrContext.event.node)
158
- } else {
159
- installQ(app, {...opts, ...includes})
160
- }
161
- },
162
- lang,
163
- iconSet
164
- })
165
168
})
166
169
`
167
170
} ,
You can’t perform that action at this time.
0 commit comments