dx(runtime-dom): warn config.isCustomElement usage in runtime-only build (#2945)

This commit is contained in:
HcySunYang
2021-02-25 05:18:55 +08:00
committed by GitHub
parent d0ea74556f
commit 354966204e
3 changed files with 27 additions and 2 deletions

View File

@@ -653,6 +653,9 @@ type CompileFunction = (
let compile: CompileFunction | undefined
// dev only
export const isRuntimeOnly = () => !compile
/**
* For runtime-dom to register the compiler.
* Note the exported method uses any to avoid d.ts relying on the compiler types.

View File

@@ -87,7 +87,7 @@ export {
resolveDynamicComponent
} from './helpers/resolveAssets'
// For integration with runtime compiler
export { registerRuntimeCompiler } from './component'
export { registerRuntimeCompiler, isRuntimeOnly } from './component'
export {
useTransitionState,
resolveTransitionHooks,