From: Evan You Date: Wed, 12 Feb 2020 17:12:53 +0000 (-0500) Subject: chore: fix import path + comment X-Git-Tag: v3.0.0-alpha.5~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d866d389f39451f930a7958fbd5b8b58b94985c3;p=thirdparty%2Fvuejs%2Fcore.git chore: fix import path + comment --- diff --git a/packages/compiler-dom/src/stringifyStatic.ts b/packages/compiler-dom/src/stringifyStatic.ts index cb3fa3f6fc..47e5321b44 100644 --- a/packages/compiler-dom/src/stringifyStatic.ts +++ b/packages/compiler-dom/src/stringifyStatic.ts @@ -32,6 +32,10 @@ function shouldOptimize(node: ElementNode): boolean { let bindingThreshold = 5 let nodeThreshold = 20 + // TODO: check for cases where using innerHTML will result in different + // output compared to imperative node insertions. + // probably only need to check for most common case + // i.e. non-phrasing-content tags inside `

` function walk(node: ElementNode) { for (let i = 0; i < node.children.length; i++) { if (--nodeThreshold === 0) { diff --git a/packages/runtime-dom/src/nodeOps.ts b/packages/runtime-dom/src/nodeOps.ts index 9b51161256..d47803bafd 100644 --- a/packages/runtime-dom/src/nodeOps.ts +++ b/packages/runtime-dom/src/nodeOps.ts @@ -1,4 +1,4 @@ -import { RendererOptions } from '@vue/runtime-core/src' +import { RendererOptions } from '@vue/runtime-core' const doc = (typeof document !== 'undefined' ? document : null) as Document const svgNS = 'http://www.w3.org/2000/svg'