From 68befa0a2e629a43a6faa2c5c35df1099c2b8b3e Mon Sep 17 00:00:00 2001 From: Barbapapazes Date: Sat, 25 Feb 2023 11:37:02 +0100 Subject: [PATCH] fix: add default value to meta --- src/runtime/transformers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/transformers/index.ts b/src/runtime/transformers/index.ts index 0b14564dd..bb153569e 100644 --- a/src/runtime/transformers/index.ts +++ b/src/runtime/transformers/index.ts @@ -37,7 +37,7 @@ function getTransformers (ext: string, additionalTransformers: ContentTransforme /** * Parse content file using registered plugins */ -export async function transformContent (id: string, content: string, meta: StorageMeta, options: TransformContentOptions = {}) { +export async function transformContent (id: string, content: string, meta: StorageMeta = {}, options: TransformContentOptions = {}) { const { transformers = [] } = options // Call hook before parsing the file const file = { _id: id, body: content }