Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tired-poems-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a vite warning log during builds when using npm
18 changes: 9 additions & 9 deletions packages/astro/src/assets/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
* If some functions don't need to be exposed, just import the file that contains the functions.
*/

export {
isRemoteAllowed,
matchHostname,
matchPathname,
matchPattern,
matchPort,
matchProtocol,
type RemotePattern,
} from '@astrojs/internal-helpers/remote';
export { isESMImportedImage, isRemoteImage, resolveSrc } from './imageKind.js';
export { imageMetadata } from './metadata.js';
export {
Expand All @@ -15,14 +24,5 @@ export {
emitImageMetadata,
} from './node/emitAsset.js';
export { getOrigQueryParams } from './queryParams.js';
export {
isRemoteAllowed,
matchHostname,
matchPathname,
matchPattern,
matchPort,
matchProtocol,
type RemotePattern,
} from './remotePattern.js';
export { inferRemoteSize } from './remoteProbe.js';
export { hashTransform, propsToFilename } from './transformToPath.js';
9 changes: 0 additions & 9 deletions packages/astro/src/assets/utils/remotePattern.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
hasFileExtension,
isInternalPath,
} from '@astrojs/internal-helpers/path';
import { matchPattern, type RemotePattern } from '../../assets/utils/remotePattern.js';
import { matchPattern, type RemotePattern } from '@astrojs/internal-helpers/remote';
import { normalizeTheLocale } from '../../i18n/index.js';
import type { RoutesList } from '../../types/astro.js';
import type { RouteData, SSRManifest } from '../../types/public/internal.js';
Expand Down
Loading