Skip to content

Commit

Permalink
fix: resolve missing file specifier error by adjusting Vite base UR…
Browse files Browse the repository at this point in the history
…L configuration
  • Loading branch information
bent10 committed Apr 23, 2024
1 parent 47aa39c commit 528254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function headlessRoute(options?: HeadlessRouteOptions): Plugin<Api> {
api.routes.forEach(route => {
input.push(route.url)
inputMap[route.url] = {
namespace: relativeRoot + route.url,
namespace: relativeRoot + route.url.replace(base, '/'),
id: route.id
}
})
Expand Down

0 comments on commit 528254c

Please # to comment.