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 11ea3d3 commit cf12d18Copy full SHA for cf12d18
packages/runtime-core/src/component.ts
@@ -22,7 +22,8 @@ import {
22
NOOP,
23
isArray,
24
isObject,
25
- NO
+ NO,
26
+ makeMap
27
} from '@vue/shared'
28
import { SuspenseBoundary } from './suspense'
29
import {
@@ -224,8 +225,7 @@ export const setCurrentInstance = (
224
225
currentInstance = instance
226
}
227
-const BuiltInTagSet = new Set(['slot', 'component'])
228
-const isBuiltInTag = (tag: string) => BuiltInTagSet.has(tag)
+const isBuiltInTag = /*#__PURE__*/ makeMap('slot,component')
229
230
export function validateComponentName(name: string, config: AppConfig) {
231
const appIsNativeTag = config.isNativeTag || NO
0 commit comments