Skip to content

Commit

Permalink
fix: use file url on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
schoero committed Jan 23, 2025
1 parent 8b74109 commit e5f2c56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tailwind/v4/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export async function createTailwindContextFromEntryPoint(entryPoint: string) {
throw new Error("Could not find Tailwind CSS");
}

const tailwindUrl = pathToFileURL(tailwindPath).toString();
// eslint-disable-next-line eslint-plugin-typescript/naming-convention
const { __unstable__loadDesignSystem } = await import(tailwindPath);
const { __unstable__loadDesignSystem } = await import(tailwindUrl);

let css = await readFile(entryPoint, "utf-8");

Expand Down

0 comments on commit e5f2c56

Please sign in to comment.