]> git.ipfire.org Git - thirdparty/vuejs/core.git/commit
fix(compiler-core): hoisted vnode calls and scoped id calls should be marked pure
authorEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 21:34:11 +0000 (17:34 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 1 May 2020 21:34:11 +0000 (17:34 -0400)
commitcad25d95a3171628b0c95e89fb8e52eb5f41bbc5
tree20266dd9dfc4edba83a11039794bd4d0a728b691
parent6c60ce13e061b43d314dde022d3f43ece7f03c30
fix(compiler-core): hoisted vnode calls and scoped id calls should be marked pure

Otherwise they cannot be tree-shaken
packages/compiler-core/__tests__/__snapshots__/scopeId.spec.ts.snap
packages/compiler-core/__tests__/scopeId.spec.ts
packages/compiler-core/__tests__/transforms/__snapshots__/hoistStatic.spec.ts.snap
packages/compiler-core/src/codegen.ts
packages/compiler-core/src/transforms/hoistStatic.ts