fix(compiler-dom): bail stringification on table elements

close #1230, close #1268
This commit is contained in:
Evan You
2020-06-09 17:02:27 -04:00
parent 64ec8bfb54
commit a938b61edc
2 changed files with 15 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
// Make a map and return a function for checking if a key
// is in that map.
//
// IMPORTANT: all calls of this function must be prefixed with /*#__PURE__*/
// So that rollup can tree-shake them if necessary.
/**
* Make a map and return a function for checking if a key
* is in that map.
* IMPORTANT: all calls of this function must be prefixed with
* \/\*#\_\_PURE\_\_\*\/
* So that rollup can tree-shake them if necessary.
*/
export function makeMap(
str: string,
expectsLowerCase?: boolean