workflow: adjust esm-bundler build file name
This commit is contained in:
@@ -1283,7 +1283,7 @@ export function createRenderer(options: RendererOptions) {
|
||||
|
||||
// API -----------------------------------------------------------------------
|
||||
|
||||
function render(vnode: VNode | null, container: RenderNode) {
|
||||
function render(vnode: VNode | null, container: any) {
|
||||
const prevVNode = container.vnode
|
||||
if (vnode && vnode.el) {
|
||||
vnode = cloneVNode(vnode)
|
||||
|
||||
@@ -22,7 +22,7 @@ type ElementType =
|
||||
| typeof Portal
|
||||
|
||||
export interface createElement {
|
||||
(tag: ElementType, data: any, children: any): VNode
|
||||
(tag: ElementType, data?: any, children?: any): VNode
|
||||
c: typeof createComponentVNode
|
||||
e: typeof createElementVNode
|
||||
t: typeof createTextVNode
|
||||
@@ -30,7 +30,7 @@ export interface createElement {
|
||||
p: typeof createPortal
|
||||
}
|
||||
|
||||
export const h = ((tag: ElementType, data: any, children: any): VNode => {
|
||||
export const h = ((tag: ElementType, data?: any, children?: any): VNode => {
|
||||
if (Array.isArray(data) || (data !== void 0 && typeof data !== 'object')) {
|
||||
children = data
|
||||
data = null
|
||||
|
||||
@@ -4,23 +4,11 @@ export { cloneVNode, createPortal, createFragment } from './vdom'
|
||||
export { createRenderer } from './createRenderer'
|
||||
|
||||
import { Component as InternalComponent, ComponentClass } from './component'
|
||||
|
||||
// the public component constructor with proper type inference.
|
||||
export const Component = InternalComponent as ComponentClass
|
||||
|
||||
// observer api
|
||||
export {
|
||||
autorun,
|
||||
stop,
|
||||
observable,
|
||||
immutable,
|
||||
computed,
|
||||
isObservable,
|
||||
isImmutable,
|
||||
markImmutable,
|
||||
markNonReactive,
|
||||
unwrap
|
||||
} from '@vue/observer'
|
||||
export * from '@vue/observer'
|
||||
|
||||
// flags & types
|
||||
export { FunctionalComponent } from './component'
|
||||
|
||||
Reference in New Issue
Block a user