From d9e019ed722971c19dedea5bd50d899d4ca15f9d Mon Sep 17 00:00:00 2001 From: huyanhai <810839700@qq.com> Date: Thu, 28 Oct 2021 10:23:21 +0800 Subject: [PATCH] fix: #420 --- src/node/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/plugin.ts b/src/node/plugin.ts index 6f1751e7..83a29c05 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -224,7 +224,7 @@ export function createVitePressPlugin( bundle[name + '-lean'] = { ...chunk, fileName: chunk.fileName.replace(/\.js$/, '.lean.js'), - code: chunk.code.replace(staticStripRE, ``) + code: chunk.code.replace(staticRestoreRE, ``) } // remove static markers from original code chunk.code = chunk.code.replace(staticRestoreRE, '')