We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1903df4 commit db3e1c7Copy full SHA for db3e1c7
src/compiler/optimizer.js
@@ -1,6 +1,6 @@
1
/* @flow */
2
3
-import { makeMap, isBuiltInTag, cached } from 'shared/util'
+import { makeMap, isBuiltInTag, cached, no } from 'shared/util'
4
5
let isStaticKey
6
let isPlatformReservedTag
@@ -21,7 +21,7 @@ const genStaticKeysCached = cached(genStaticKeys)
21
export function optimize (root: ?ASTElement, options: CompilerOptions) {
22
if (!root) return
23
isStaticKey = genStaticKeysCached(options.staticKeys || '')
24
- isPlatformReservedTag = options.isReservedTag || (() => false)
+ isPlatformReservedTag = options.isReservedTag || no
25
// first pass: mark all non-static nodes.
26
markStatic(root)
27
// second pass: mark static roots.
0 commit comments