Skip to content

Commit 93101cc

Browse files
matthewpastrobot-houston
authored andcommitted
[ci] format
1 parent 152700e commit 93101cc

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

packages/astro/src/toolbar/vite-plugin-dev-toolbar.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,10 @@ export default function astroDevToolbar({ settings, logger }: AstroPluginOptions
3434
build.onEnd((result) => {
3535
if (!result.metafile) return;
3636
for (const outputPath of Object.keys(result.metafile.outputs)) {
37-
if (!outputPath.includes('entrypoint') || !outputPath.endsWith('.js')) continue;
37+
if (!outputPath.includes('entrypoint') || !outputPath.endsWith('.js'))
38+
continue;
3839
const code = readFileSync(outputPath, 'utf-8');
39-
const stripped = code.replace(
40-
/\/\/# sourceMappingURL=.*$/m,
41-
'',
42-
);
40+
const stripped = code.replace(/\/\/# sourceMappingURL=.*$/m, '');
4341
if (stripped !== code) {
4442
writeFileSync(outputPath, stripped);
4543
}

0 commit comments

Comments
 (0)