perf: improve VNode creation performance with compiler hints (#3334)
This commit is contained in:
@@ -35,6 +35,7 @@ export function compile(
|
||||
// apply DOM-specific parsing options
|
||||
...parserOptions,
|
||||
ssr: true,
|
||||
inSSR: true,
|
||||
scopeId: options.mode === 'function' ? null : options.scopeId,
|
||||
// always prefix since compiler-ssr doesn't have size concern
|
||||
prefixIdentifiers: true,
|
||||
|
||||
@@ -241,6 +241,7 @@ function createVNodeSlotBranch(
|
||||
): ReturnStatement {
|
||||
// apply a sub-transform using vnode-based transforms.
|
||||
const rawOptions = rawOptionsMap.get(parentContext.root)!
|
||||
|
||||
const subOptions = {
|
||||
...rawOptions,
|
||||
// overwrite with vnode-based transforms
|
||||
|
||||
Reference in New Issue
Block a user