Skip to content

Commit

Permalink
fix: fix partial not found error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Rehill committed Feb 7, 2023
1 parent 2e9295b commit fb1fcda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/adapters/handlebars.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ export class HandlebarsAdapter implements TemplateAdapter {
});

if (runtimeOptions.partials) {
const files = glob.sync(
path.join(runtimeOptions.partials.dir, '**', '*.hbs'),
);
const partialPath = path.join(runtimeOptions.partials.dir, '**', '*.hbs').replace(/\\/g,'/');

const files = glob.sync(partialPath);

files.forEach((file) => {
const { templateName, templatePath } = precompile(
file,
Expand Down

0 comments on commit fb1fcda

Please sign in to comment.