Skip to content

Commit

Permalink
chore(lint): Prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Dec 3, 2021
1 parent dd285a0 commit 43bb887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function astro({ config, devServer }: AstroPluginOptions): vite.P
// The compiler doesn't currently validate the frontmatter, so invalid JS/TS can cause issues
// in the final output. This prevents bad JS from becoming a compiler panic or otherwise
// breaking the final output.
const scannedFrontmatter = (/^\-\-\-(.*)^\-\-\-/ms).exec(source);
const scannedFrontmatter = /^\-\-\-(.*)^\-\-\-/ms.exec(source);
if (scannedFrontmatter) {
await esbuild.transform(scannedFrontmatter[1], { loader: 'ts', sourcemap: false, sourcefile: id });
}
Expand Down

0 comments on commit 43bb887

Please sign in to comment.