From a8fc3691f4c94cbc8ac497734652cb4a7a7da67e Mon Sep 17 00:00:00 2001 From: shadowtime2000 <66655515+shadowtime2000@users.noreply.github.com> Date: Sat, 28 Nov 2020 23:52:44 -0800 Subject: [PATCH] refactor: use object.assign --- src/render.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.ts b/src/render.ts index 30ab4c0..a6da787 100644 --- a/src/render.ts +++ b/src/render.ts @@ -93,5 +93,5 @@ export default function render( } export function renderAsync(template: string | TemplateFunction, data: object, config?: PartialConfig, cb?: CallbackFn): string | Promise | void { - return render(template, data, { ...config, async: true }, cb) + return render(template, data, Object.assign({}, config, { async: true }), cb) }