workflow: adjust esm-bundler build file name

This commit is contained in:
Evan You
2018-09-19 21:51:21 -04:00
parent 77d57813eb
commit 38109fe915
15 changed files with 43 additions and 67 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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'