ux(exports): remove the /snabbdom.bundle path
BREAKING CHANGE: the import path `snabbdom/snabbdom.bundle` is removed.pull/671/head
parent
5e24b20a52
commit
c862993359
@ -1,19 +0,0 @@
|
|||||||
import { init } from './snabbdom'
|
|
||||||
import { attributesModule } from './modules/attributes' // for setting attributes on DOM elements
|
|
||||||
import { classModule } from './modules/class' // makes it easy to toggle classes
|
|
||||||
import { propsModule } from './modules/props' // for setting properties on DOM elements
|
|
||||||
import { styleModule } from './modules/style' // handles styling on elements with support for animations
|
|
||||||
import { eventListenersModule } from './modules/eventlisteners' // attaches event listeners
|
|
||||||
|
|
||||||
// helper function for creating vnodes
|
|
||||||
import { h } from './h'
|
|
||||||
|
|
||||||
var patch = init([ // Init patch function with choosen modules
|
|
||||||
attributesModule,
|
|
||||||
classModule,
|
|
||||||
propsModule,
|
|
||||||
styleModule,
|
|
||||||
eventListenersModule
|
|
||||||
]) as (oldVNode: any, vnode: any) => any
|
|
||||||
export const snabbdomBundle = { patch, h: h as any }
|
|
||||||
export default snabbdomBundle
|
|
Loading…
Reference in New Issue