mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-04-25 03:00:24 +08:00
perf: the bytecodePlugin transform arrow function by default
This commit is contained in:
parent
6e04db0a14
commit
8556a45cab
@ -323,7 +323,7 @@ export function bytecodePlugin(options: BytecodeOptions = {}): Plugin | null {
|
|||||||
return 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 _chunkAlias = Array.isArray(chunkAlias) ? chunkAlias : [chunkAlias]
|
||||||
const transformAllChunks = _chunkAlias.length === 0
|
const transformAllChunks = _chunkAlias.length === 0
|
||||||
const bytecodeChunks: string[] = []
|
const bytecodeChunks: string[] = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user