Skip to content

Commit 68befa0

Browse files
committed
fix: add default value to meta
1 parent 157616e commit 68befa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/transformers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function getTransformers (ext: string, additionalTransformers: ContentTransforme
3737
/**
3838
* Parse content file using registered plugins
3939
*/
40-
export async function transformContent (id: string, content: string, meta: StorageMeta, options: TransformContentOptions = {}) {
40+
export async function transformContent (id: string, content: string, meta: StorageMeta = {}, options: TransformContentOptions = {}) {
4141
const { transformers = [] } = options
4242
// Call hook before parsing the file
4343
const file = { _id: id, body: content }

0 commit comments

Comments
 (0)