Skip to content

Commit

Permalink
test: missing __dirname in playground (#15243)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev authored Dec 5, 2023
1 parent 002d5c0 commit 275ca5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playground/optimize-missing-deps/server.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// @ts-check
import fs from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import express from 'express'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
const isTest = process.env.VITEST

export async function createServer(root = process.cwd(), hmrPort) {
Expand Down

0 comments on commit 275ca5a

Please sign in to comment.