Skip to content

Commit 12f0c52

Browse files
committed
Update Vue example to use own runtime
1 parent 2490008 commit 12f0c52

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example/vue.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ <h1><code>Vue</code> + <code>hast-util-to-jsx-runtime</code></h1>
88
<div id=root></div>
99
<script type=module>
1010
/* eslint-env browser */
11-
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue[email protected]/jsx-runtime'
12-
import {createApp} from 'https://esm.sh/vue@3?dev'
11+
import {createApp} from 'https://esm.sh/vue@3.3.0-alpha.8?dev'
12+
import {Fragment, jsx, jsxs} from 'https://esm.sh/vue@3.3.0-alpha.8/jsx-runtime?dev'
1313
import {toJsxRuntime} from './hast-util-to-jsx-runtime.min.js'
1414
import {createTree} from './create-tree.js'
1515

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ render(
378378
In Node.js, do:
379379

380380
```js
381-
import {Fragment, jsx, jsxs} from 'vue-jsx-runtime/jsx-runtime'
381+
import {Fragment, jsx, jsxs} from 'vue/jsx-runtime' // Available since `vue@^3.3.0-alpha.6`.
382382
import serverRenderer from '@vue/server-renderer'
383383
import {h} from 'hastscript'
384384
import {toJsxRuntime} from 'hast-util-to-jsx-runtime'

0 commit comments

Comments
 (0)