Skip to content

Commit

Permalink
Try using fileURLToPath
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Jul 11, 2024
1 parent cf4b154 commit 286350d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/rsc/rscWorkerCommunication.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import path from 'node:path'
import type { Readable } from 'node:stream'
import { PassThrough } from 'node:stream'
import { fileURLToPath } from 'node:url'
import { Worker } from 'node:worker_threads'

import type { ServerAuthState } from '@redwoodjs/auth/dist/AuthProvider/ServerAuthProvider.js'

import type { RscFetchProps } from './rscFetchForClientRouter.js'
const __filename = new URL(import.meta.url).pathname
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const worker = new Worker(path.join(__dirname, 'rscWorker.js'), {
execArgv: [
Expand Down

0 comments on commit 286350d

Please sign in to comment.