Skip to content

Commit

Permalink
fix: normalize path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernankez committed Mar 18, 2024
1 parent 8ba810c commit 9712784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ const FontCarrier: (options: FontCarrierOptions) => Plugin = (options) => {
for (const url of urls) {
let path: string;
if (isAbsolute(url)) {
path = resolve(resolvedConfig.publicDir, url);
path = normalizePath(resolve(resolvedConfig.publicDir, url.slice(1)));
} else {
path = resolve(dirname(id), url);
path = normalizePath(resolve(dirname(id), url));
}
const font = fontAssets.find(font => font.path === path);
if (font) {
Expand Down

0 comments on commit 9712784

Please sign in to comment.