File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { writeFile } from "node:fs/promises" ;
2
- import { extname , resolve } from "node:path/posix" ;
2
+ import { extname , join , resolve } from "node:path/posix" ;
3
3
import { nodeResolve } from "@rollup/plugin-node-resolve" ;
4
4
import { simple } from "acorn-walk" ;
5
5
import { build } from "esbuild" ;
@@ -196,8 +196,8 @@ function importMetaResolve(path: string, resolveImport: ImportResolver): Plugin
196
196
// tailwind.config.js is present in the project root, we import and merge it.
197
197
async function tailwindConfig ( root : string ) : Promise < ESBuildPlugin > {
198
198
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 ) ) ;
201
201
const m = await maybeStat ( configPath ) ;
202
202
if ( ! m || ! s || ! ( m . mtimeMs > s . mtimeMs ) ) {
203
203
await prepareOutput ( configPath ) ;
You can’t perform that action at this time.
0 commit comments