diff --git a/playground/optimize-missing-deps/server.js b/playground/optimize-missing-deps/server.js index 411c3342b02d9c..ea50b9adc291e5 100644 --- a/playground/optimize-missing-deps/server.js +++ b/playground/optimize-missing-deps/server.js @@ -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) {