Fix typo in vite-plugin-astro/index.ts (#4467)

This commit is contained in:
Ikko Ashimine 2022-08-25 17:24:16 +09:00 committed by GitHub
parent 62d98e4af3
commit 1d9d72ea31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
let transformStyleWithVite: TransformStyleWithVite;
let viteDevServer: vite.ViteDevServer | undefined;
// Variables for determing if an id starts with /src...
// Variables for determining if an id starts with /src...
const srcRootWeb = config.srcDir.pathname.slice(config.root.pathname.length - 1);
const isBrowserPath = (path: string) => path.startsWith(srcRootWeb);