Skip to content

Commit 07df2cf

Browse files
committed
linting
1 parent 90b1a80 commit 07df2cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

knip.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export default {
2929
'test/types/**/*',
3030
'e2e/**/*.test.js',
3131
'test/units/teardown.js',
32+
// Can't detect this file when using inside a vite plugin
33+
'src/vite-plugin-app/createAstroServerApp.ts',
3234
],
3335
ignore: [
3436
'**/e2e/**/{fixtures,_temp-fixtures}/**',

packages/astro/src/core/middleware/vite-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { AstroError } from '../errors/index.js';
1010
import { normalizePath } from '../viteUtils.js';
1111

1212
export const MIDDLEWARE_MODULE_ID = 'virtual:astro:middleware';
13-
export const MIDDLEWARE_RESOLVED_MODULE_ID = '\0' + MIDDLEWARE_MODULE_ID;
13+
const MIDDLEWARE_RESOLVED_MODULE_ID = '\0' + MIDDLEWARE_MODULE_ID;
1414
const NOOP_MIDDLEWARE = '\0noop-middleware';
1515

1616
export function vitePluginMiddleware({ settings }: { settings: AstroSettings }): VitePlugin {

0 commit comments

Comments
 (0)