Evan You 136ab753b3 build: adjust esm formats 6 anos atrás
..
__tests__ 6c80e13986 chore: typos [ci-skip] (#323) 6 anos atrás
src d7d87622ce refactor: use isArray function from shared (#441) 6 anos atrás
LICENSE 34989ef7fe chore: license 6 anos atrás
README.md dcfac07431 chore: update readme for runtime-test 6 anos atrás
api-extractor.json b2d269a651 build: use api-extractor for type rollup 6 anos atrás
index.js e05673f4d3 refactor: rename packages 7 anos atrás
package.json 136ab753b3 build: adjust esm formats 6 anos atrás

README.md

@vue/runtime-test

import { h, render, nodeOps, dumpOps } from '@vue/runtime-test'

const App = {
  data () {
    return {
      msg: 'Hello World!'
    }
  }
  render () {
    return h('div', this.msg)
  }
}

// root is of type `TestElement` as defined in src/nodeOps.ts
const root = nodeOps.createElement('div')
render(h(App), root)

const ops = dumpOps()
console.log(ops)