perf: the bytecodePlugin transform arrow function by default

This commit is contained in:
alex8088 2022-09-22 18:54:29 +08:00
parent 6e04db0a14
commit 8556a45cab

View File

@ -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[] = []