Skip to content

Commit

Permalink
fix(plugin): normalize dependency path
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 17, 2024
1 parent 54a2dec commit b818ef1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export function sass(opts: d.PluginOptions = {}): d.Plugin {
results.code = `/** sass error${err && err.message ? ': ' + err.message : ''} **/`;
resolve(results);
} else {
results.dependencies = Array.from(sassResult.stats.includedFiles);
results.dependencies = Array.from(sassResult.stats.includedFiles as string[]).map((dep) =>
context.sys.normalizePath(dep),
);
results.code = sassResult.css.toString();

// write this css content to memory only so it can be referenced
Expand Down

0 comments on commit b818ef1

Please sign in to comment.