Skip to content

Commit

Permalink
try to fix computeName in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Mar 29, 2023
1 parent 3344dac commit ebbcfee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/esbuild-plugin-meta-url/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ export default function({ emit = true } = {}) {
}
}

helpers.overwrite(startToken.start, endToken.end, `new URL('./${entryPoint}', ${baseUrl})`);
console.log('>', entryPoint, path.sep, entryPoint.split(path.sep).join('/'));
helpers.overwrite(startToken.start, endToken.end, `new URL('./${entryPoint.split(path.sep).join('/')}', ${baseUrl})`);
return;
}

Expand Down

0 comments on commit ebbcfee

Please sign in to comment.