Skip to content

Commit 8115752

Browse files
fix(astro): assets vite build log (#15034)
1 parent 84a09b1 commit 8115752

4 files changed

Lines changed: 15 additions & 19 deletions

File tree

.changeset/tired-poems-shake.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+
Fixes a vite warning log during builds when using npm

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
* If some functions don't need to be exposed, just import the file that contains the functions.
66
*/
77

8+
export {
9+
isRemoteAllowed,
10+
matchHostname,
11+
matchPathname,
12+
matchPattern,
13+
matchPort,
14+
matchProtocol,
15+
type RemotePattern,
16+
} from '@astrojs/internal-helpers/remote';
817
export { isESMImportedImage, isRemoteImage, resolveSrc } from './imageKind.js';
918
export { imageMetadata } from './metadata.js';
1019
export {
@@ -15,14 +24,5 @@ export {
1524
emitImageMetadata,
1625
} from './node/emitAsset.js';
1726
export { getOrigQueryParams } from './queryParams.js';
18-
export {
19-
isRemoteAllowed,
20-
matchHostname,
21-
matchPathname,
22-
matchPattern,
23-
matchPort,
24-
matchProtocol,
25-
type RemotePattern,
26-
} from './remotePattern.js';
2727
export { inferRemoteSize } from './remoteProbe.js';
2828
export { hashTransform, propsToFilename } from './transformToPath.js';

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

Lines changed: 0 additions & 9 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
hasFileExtension,
44
isInternalPath,
55
} from '@astrojs/internal-helpers/path';
6-
import { matchPattern, type RemotePattern } from '../../assets/utils/remotePattern.js';
6+
import { matchPattern, type RemotePattern } from '@astrojs/internal-helpers/remote';
77
import { normalizeTheLocale } from '../../i18n/index.js';
88
import type { RoutesList } from '../../types/astro.js';
99
import type { RouteData, SSRManifest } from '../../types/public/internal.js';

0 commit comments

Comments
 (0)