Skip to content

Commit

Permalink
fix(devtools): import app utilities from #imports (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 28, 2023
1 parent 1116474 commit 68efb1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/devtools/client/plugins/floating-vue.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import FloatingVue from 'floating-vue'
import { defineNuxtPlugin } from '#app'
import { defineNuxtPlugin } from '#imports'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(FloatingVue)
Expand Down
3 changes: 1 addition & 2 deletions packages/devtools/src/runtime/plugins/devtools.server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { TimelineServerState } from '../../types'
import { defineNuxtPlugin } from '#app'
import { useState } from '#imports'
import { defineNuxtPlugin, useState } from '#imports'

export default defineNuxtPlugin(() => {
// record ssr start time
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/module-starter/src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineNuxtPlugin } from '#app'
import { defineNuxtPlugin } from '#imports'

export default defineNuxtPlugin((_nuxtApp) => {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 68efb1b

Please sign in to comment.