Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: withastro/astro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: b4f482e10b7b542f5be14d3c9cd7cd9517f8e3fd
Choose a base ref
..
head repository: withastro/astro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d254dcb252912bb217ffd67dc5fe88e40264e92f
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 packages/astro/src/vite-plugin-astro-server/pipeline.ts
6 changes: 3 additions & 3 deletions packages/astro/src/vite-plugin-astro-server/pipeline.ts
Original file line number Diff line number Diff line change
@@ -74,7 +74,7 @@ export class DevPipeline extends Pipeline {
mode,
settings,
} = this;
const filePath = new URL(`./${routeData.component}`, root);
const filePath = new URL(`${routeData.component}`, root);
// Add hoisted script tags, skip if direct rendering with `directRenderScript`
const { scripts } = settings.config.experimental.directRenderScript
? { scripts: new Set<SSRElement>() }
@@ -146,7 +146,7 @@ export class DevPipeline extends Pipeline {
config: { root },
loader,
} = this;
const filePath = new URL(`./${routeData.component}`, root);
const filePath = new URL(`${routeData.component}`, root);
return getComponentMetadata(filePath, loader);
}

@@ -186,7 +186,7 @@ export class DevPipeline extends Pipeline {
if (component) {
return component;
} else {
const filePath = new URL(`./${routeData.component}`, this.config.root);
const filePath = new URL(`${routeData.component}`, this.config.root);
return await this.preload(routeData, filePath);
}
}