vue3-yuanma/packages/runtime-dom
Haoqun Jiang 97d6f1a716
fix: should prefix ShadowRoot with window. (#2943)
Otherwise this expression would throw in environments that does not
support `ShadowRoot` which includes the common mocha testing environment
setup that uses `jsdom` and `jsdom-global`.

It is because `ShadowRoot` is not an enumerable property on `window`,
`jsdom-global` fails to expose it on the `global` object.

See the error message at: https://app.circleci.com/pipelines/github/vuejs/vue-cli/779/workflows/17d7d7c4-7605-4588-878a-ddb3a6d37102/jobs/24147
2021-02-03 19:10:27 +01:00
..
__tests__ fix(v-model): respect checkbox true-value/false-value on initial render 2020-12-01 12:02:37 -05:00
src fix: should prefix ShadowRoot with window. (#2943) 2021-02-03 19:10:27 +01:00
types types(tsx): svg xmlns attribute typing (#2344) 2020-10-19 17:40:21 -04:00
api-extractor.json refactor(types): mark internal API exports and exclude from d.ts 2020-04-30 17:04:35 -04:00
index.js refactor: rename packages 2018-10-26 15:44:50 -04:00
LICENSE chore: license 2019-10-28 11:15:17 -04:00
package.json release: v3.0.5 2020-12-30 15:50:28 -05:00
README.md chore: update runtime-dom/README example to latest signature (#693) [ci skip] 2020-02-04 09:24:29 -05:00

@vue/runtime-dom

import { h, createApp } from '@vue/runtime-dom'

const RootComponent = {
  render() {
    return h('div', 'hello world')
  }
}

createApp(RootComponent).mount('#app')