chore: make compile type consistent
This commit is contained in:
parent
b191beb876
commit
dbdc0aa9dd
|
@ -1,7 +1,8 @@
|
||||||
// This entry exports the runtime only, and is built as
|
// This entry exports the runtime only, and is built as
|
||||||
// `dist/vue.esm-bundler.js` which is used by default for bundlers.
|
// `dist/vue.esm-bundler.js` which is used by default for bundlers.
|
||||||
|
import { NOOP } from '@vue/shared'
|
||||||
import { initDev } from './dev'
|
import { initDev } from './dev'
|
||||||
import { warn } from '@vue/runtime-dom'
|
import { type RenderFunction, warn } from '@vue/runtime-dom'
|
||||||
|
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
initDev()
|
initDev()
|
||||||
|
@ -9,7 +10,7 @@ if (__DEV__) {
|
||||||
|
|
||||||
export * from '@vue/runtime-dom'
|
export * from '@vue/runtime-dom'
|
||||||
|
|
||||||
export const compile = (): void => {
|
export const compile = (_template: string): RenderFunction => {
|
||||||
if (__DEV__) {
|
if (__DEV__) {
|
||||||
warn(
|
warn(
|
||||||
`Runtime compilation is not supported in this build of Vue.` +
|
`Runtime compilation is not supported in this build of Vue.` +
|
||||||
|
@ -22,4 +23,5 @@ export const compile = (): void => {
|
||||||
: ``) /* should not happen */,
|
: ``) /* should not happen */,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
return NOOP
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue