Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit 7d60a22

Browse files
committed
fix: typescript error
1 parent 2075c0e commit 7d60a22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/webpack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const extendWebpackConfig =
2929
(resultingWebpackConfig, [slug, collectionOptions]) => {
3030
const matchedCollection = config.collections?.find(coll => coll.slug === slug)
3131

32-
if (matchedCollection) {
32+
if (matchedCollection && typeof collectionOptions.adapter === 'function') {
3333
const adapter: GeneratedAdapter = collectionOptions.adapter({
3434
collection: matchedCollection,
3535
})

0 commit comments

Comments
 (0)