]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: use webpack-compatible pure annotation
authorEvan You <yyx990803@gmail.com>
Tue, 15 Oct 2019 16:22:32 +0000 (12:22 -0400)
committerEvan You <yyx990803@gmail.com>
Tue, 15 Oct 2019 16:22:32 +0000 (12:22 -0400)
packages/compiler-core/src/transforms/transformExpression.ts
packages/shared/src/element.ts
packages/shared/src/globalsWhitelist.ts
packages/shared/src/makeMap.ts

index 8a8734d5f93821dd5db6fb6f32cf1e6411a8645a..84bb35ef4d7bcf32dba03d96834f8c3d9d14be49 100644 (file)
@@ -25,7 +25,7 @@ import {
 } from '../utils'
 import { isGloballyWhitelisted, makeMap } from '@vue/shared'
 
-const isLiteralWhitelisted = /*@__PURE__*/ makeMap('true,false,null,this')
+const isLiteralWhitelisted = /*#__PURE__*/ makeMap('true,false,null,this')
 
 export const transformExpression: NodeTransform = (node, context) => {
   if (node.type === NodeTypes.INTERPOLATION) {
index 27fd813bd5ac9d8d8a573daf4194c1092f57775c..f75952570250bbbbbcc3d97291e6d82845207d7a 100644 (file)
@@ -23,6 +23,6 @@ const SVG_TAGS =
 const VOID_TAGS =
   'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr'
 
-export const isHTMLTag = /*@__PURE__*/ makeMap(HTML_TAGS)
-export const isSVGTag = /*@__PURE__*/ makeMap(SVG_TAGS)
-export const isVoidTag = /*@__PURE__*/ makeMap(VOID_TAGS)
+export const isHTMLTag = /*#__PURE__*/ makeMap(HTML_TAGS)
+export const isSVGTag = /*#__PURE__*/ makeMap(SVG_TAGS)
+export const isVoidTag = /*#__PURE__*/ makeMap(VOID_TAGS)
index 4c0e33a425f7402a8d10e77d229fcd69f5635626..c6347bf29905fec88abb5e71292e40836a340a67 100644 (file)
@@ -5,4 +5,4 @@ const GLOBALS_WHITE_LISTED =
   'decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,' +
   'Object,Boolean,String,RegExp,Map,Set,JSON,Intl'
 
-export const isGloballyWhitelisted = /*@__PURE__*/ makeMap(GLOBALS_WHITE_LISTED)
+export const isGloballyWhitelisted = /*#__PURE__*/ makeMap(GLOBALS_WHITE_LISTED)
index be9a258a87b21206f85bb1cab914a9312291e1e6..712c3c2d7bfa6d5bd560b1d66794d6a6d4dfe992 100644 (file)
@@ -1,7 +1,7 @@
 // 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__*/
+// 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,