fix: ensure makeMap calls are tree-shakable

This commit is contained in:
Evan You
2019-10-15 12:19:46 -04:00
parent 58fffcb987
commit 7de3aee317
4 changed files with 10 additions and 9 deletions

View File

@@ -25,7 +25,7 @@ import {
} from '../utils'
import { isGloballyWhitelisted, makeMap } from '@vue/shared'
const isLiteralWhitelisted = makeMap('true,false,null,this')
const isLiteralWhitelisted = /*@__PURE__*/ makeMap('true,false,null,this')
export const transformExpression: NodeTransform = (node, context) => {
if (node.type === NodeTypes.INTERPOLATION) {