Skip to content

Commit 21f9fe2

Browse files
fix(astro): remove unused re-exports causing Vite build warning (#16197)
* fix(astro): remove unused re-exports causing Vite build warning (#16188) * chore: add changeset --------- Co-authored-by: astrobot-houston <fred+astrobot@astro.build>
1 parent 6d5469e commit 21f9fe2

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.changeset/eager-ravens-serve.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Remove unused re-exports from assets/utils barrel file to fix Vite build warning

packages/astro/src/assets/utils/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77

88
export {
99
isRemoteAllowed,
10-
matchHostname,
11-
matchPathname,
1210
matchPattern,
13-
matchPort,
14-
matchProtocol,
1511
type RemotePattern,
1612
} from '@astrojs/internal-helpers/remote';
1713
export { emitClientAsset } from './assets.js';

packages/astro/src/core/app/base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
prependForwardSlash,
99
removeTrailingForwardSlash,
1010
} from '@astrojs/internal-helpers/path';
11-
import { matchPattern } from '../../assets/utils/index.js';
11+
import { matchPattern } from '@astrojs/internal-helpers/remote';
1212
import { normalizeTheLocale } from '../../i18n/index.js';
1313
import type { RoutesList } from '../../types/astro.js';
1414
import type { RemotePattern, RouteData } from '../../types/public/index.js';

0 commit comments

Comments
 (0)