From 8556a45cabbcb7fa6f46469d3df7f8c000a4746b Mon Sep 17 00:00:00 2001 From: alex8088 <244096523@qq.com> Date: Thu, 22 Sep 2022 18:54:29 +0800 Subject: [PATCH] perf: the bytecodePlugin transform arrow function by default --- src/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.ts b/src/plugin.ts index c83ebc9..f6d9cd0 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -323,7 +323,7 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null { return null } - const { chunkAlias = [], transformArrowFunctions = false, removeBundleJS = true } = options + const { chunkAlias = [], transformArrowFunctions = true, removeBundleJS = true } = options const _chunkAlias = Array.isArray(chunkAlias) ? chunkAlias : [chunkAlias] const transformAllChunks = _chunkAlias.length === 0 const bytecodeChunks: string[] = []