Skip to content

Commit 8b7a56e

Browse files
committed
fix: build resolving
1 parent eb55b06 commit 8b7a56e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function createRollupPlugin(ctx: Context): Plugin {
1313
async load(id) {
1414
if (isResolverPath(id)) {
1515
await ctx.searchGlob()
16-
return await generateResolver(ctx, id)
16+
return await generateResolver(ctx, id.slice(1)) // remove the heading '/'
1717
}
1818
return null
1919
},

0 commit comments

Comments
 (0)