export interface AppConfig {
// @private
- readonly isNativeTag?: (tag: string) => boolean
+ readonly isNativeTag: (tag: string) => boolean
performance: boolean
optionMergeStrategies: Record<string, OptionMergeFunction>
import {
EMPTY_OBJ,
type IfAny,
- NO,
NOOP,
ShapeFlags,
extend,
const isBuiltInTag = /*#__PURE__*/ makeMap('slot,component')
-export function validateComponentName(name: string, config: AppConfig) {
- const appIsNativeTag = config.isNativeTag || NO
- if (isBuiltInTag(name) || appIsNativeTag(name)) {
+export function validateComponentName(
+ name: string,
+ { isNativeTag }: AppConfig,
+) {
+ if (isBuiltInTag(name) || isNativeTag(name)) {
warn(
'Do not use built-in or reserved HTML elements as component id: ' + name,
)