Skip to content

Commit

Permalink
prevent annotations in build
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy committed Dec 3, 2023
1 parent d71e937 commit 8e57313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/core/compile/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function compile({
resultScopedSlot: true,
transitionsAnimationURL: 'astro/components/viewtransitions.css',
annotateSourceFile:
!viteConfig.isProduction && astroConfig.devOverlay && astroConfig.devOverlay.enabled,
viteConfig.mode === "development" && astroConfig.devOverlay && astroConfig.devOverlay.enabled,
preprocessStyle: createStylePreprocessor({
filename,
viteConfig,
Expand Down

0 comments on commit 8e57313

Please sign in to comment.