Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/void/src/prerender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ async function runNodePrerenderRunner<T>(root: string, config: NodeRunnerConfig)
runnerPath,
`
import { pathToFileURL } from "node:url";
import { join, dirname } from "pathslash";
import { dirname, join } from "node:path";
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";

const config = JSON.parse(process.argv[2]);
Expand Down
1 change: 0 additions & 1 deletion playground/node-static/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@void/react": "workspace:*",
"pathslash": "catalog:",
"vite": "catalog:",
"vite-plus": "catalog:",
"void": "workspace:*"
Expand Down
5 changes: 4 additions & 1 deletion playground/node-static/scripts/serve-static.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { existsSync, readFileSync, statSync } from 'node:fs';
import { createServer } from 'node:http';
import { extname, isAbsolute, relative, resolve } from 'pathslash';
// Keep this playground free of `pathslash` so the build catches bare
// specifiers leaking into the generated prerender runner (#285).
// oxlint-disable-next-line no-restricted-imports
import { extname, isAbsolute, relative, resolve } from 'node:path';

const root = resolve(import.meta.dirname, '../dist/client');
const port = Number(process.env.PORT || 4179);
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.