Skip to content

Commit

Permalink
Add comment on injection detection regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed May 22, 2023
1 parent 0e94ed4 commit 96e470b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/astro/src/vite-plugin-head/index.ts
Expand Up @@ -9,6 +9,7 @@ import { getTopLevelPages, walkParentInfos } from '../core/build/graph.js';
import type { BuildInternals } from '../core/build/internal.js';
import { getAstroMetadata } from '../vite-plugin-astro/index.js';

// Detect this in comments, both in .astro components and in js/ts files.
const injectExp = /(^\/\/|\/\/!)\s*astro-head-inject/;

export default function configHeadVitePlugin({
Expand Down

0 comments on commit 96e470b

Please sign in to comment.