Skip to content

Commit

Permalink
fix: improve rpc import message, close #528
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 12, 2023
1 parent ff0c021 commit 721dda8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/devtools/client/composables/rpc.ts
Expand Up @@ -47,12 +47,12 @@ async function connectVite() {
base += '/'
const current = window.location.href.replace(/\/__nuxt_devtools__\/client\/.*$/, '/')
const hot = await tryCreateHotContext(undefined, Array.from(new Set([
current,
`${current}${buildAssetsDir}/`,
`${current}_nuxt/`,
base,
`${base}${buildAssetsDir}/`,
`${base}_nuxt/`,
base,
`${current}${buildAssetsDir}/`,
`${current}_nuxt/`,
current,
])))

if (!hot) {
Expand Down

0 comments on commit 721dda8

Please sign in to comment.