Skip to content

Commit b453fc4

Browse files
committed
windows?
1 parent 65dd010 commit b453fc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rollup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {writeFile} from "node:fs/promises";
2-
import {extname, resolve} from "node:path/posix";
2+
import {extname, join, resolve} from "node:path/posix";
33
import {nodeResolve} from "@rollup/plugin-node-resolve";
44
import {simple} from "acorn-walk";
55
import {build} from "esbuild";
@@ -196,8 +196,8 @@ function importMetaResolve(path: string, resolveImport: ImportResolver): Plugin
196196
// tailwind.config.js is present in the project root, we import and merge it.
197197
async function tailwindConfig(root: string): Promise<ESBuildPlugin> {
198198
const twconfig = "tailwind.config.js";
199-
const configPath = `./${root}/.observablehq/cache/${twconfig}`;
200-
const s = await maybeStat(`./${root}/${twconfig}`);
199+
const configPath = join(root, ".observablehq", "cache", twconfig);
200+
const s = await maybeStat(join(root, twconfig));
201201
const m = await maybeStat(configPath);
202202
if (!m || !s || !(m.mtimeMs > s.mtimeMs)) {
203203
await prepareOutput(configPath);

0 commit comments

Comments
 (0)