From 4c04319f6d92e53bc6fd885645fd8771fc32ee4d Mon Sep 17 00:00:00 2001 From: Anillc Date: Sun, 8 Aug 2021 22:47:28 +0800 Subject: [PATCH] fix(puppeteer): fix the failure to render the fragment from plugin-eval (#317) --- packages/plugin-puppeteer/src/worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin-puppeteer/src/worker.ts b/packages/plugin-puppeteer/src/worker.ts index ce680d3160..76e2538136 100644 --- a/packages/plugin-puppeteer/src/worker.ts +++ b/packages/plugin-puppeteer/src/worker.ts @@ -15,4 +15,4 @@ function wrapFactory any>(func: F) { } internal.setGlobal(config.loaderConfig.jsxFactory, wrapFactory(createElement)) -internal.setGlobal(config.loaderConfig.jsxFragment, wrapFactory(Fragment)) +internal.setGlobal(config.loaderConfig.jsxFragment, Fragment)