Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 27, 2024
1 parent b7d58e8 commit 855790c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ export default createUnplugin<Options>((options = {}) => {
build.onLoad(
{ filter: new RegExp(`^${ID_PREFIX}`), namespace: name },
async ({ path }) => {
// eslint-disable-next-line unused-imports/no-unused-vars
const [_, src] = path.replace(ID_PREFIX, '').split(':', 2)
let [, src] = path.replace(ID_PREFIX, '').split(':', 2)
src = src.replaceAll(DRIVER_DIVIDER_REGEXP, ':')

return {
contents: await load(path),
resolveDir: dirname(src),
Expand Down

0 comments on commit 855790c

Please sign in to comment.