Skip to content

Commit 00401ba

Browse files
danielwong0115omargfh
authored andcommitted
Fix path referencing in engines.ts
1 parent 2a5f76e commit 00401ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/template/src/engines.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract class TemplateEngine {
3030

3131
const filePath = path.join(file.parentPath, file.name);
3232
const fileNameRelativeToRoot = path.relative(rootDirectory, filePath);
33-
const fileKey = fileNameRelativeToRoot.split(path.sep).join("/");
33+
const fileKey = fileNameRelativeToRoot.replace(/\\/g, "/");
3434

3535
try {
3636
const content = await fs.readFile(filePath, "utf-8");

0 commit comments

Comments
 (0)