Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 15, 2024
1 parent 23103d9 commit c31aebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ViteServer {
}

async function instrument (filename: string, onConnect: (value: ViteDevServer) => void): Promise<Plugin> {
const instrumentation = await fs.readFile(path.join(__dirname, 'instrumentation.js'), 'utf-8')
const instrumentation = await fs.readFile(path.resolve(__dirname, 'browser', 'index.js'), 'utf-8')
const sendFinishEvent = `requestAnimationFrame(() => import.meta.hot?.send('bx:event', { name: 'doneEvent' }))`
return {
name: 'instrument',
Expand Down

0 comments on commit c31aebf

Please sign in to comment.