mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-09 05:16:23 +10:00
- fix($core): markdown slot doesn‘t work. (regression of c85f62d)
- docs: fresh Node.JS API.
- test: official plugins.
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
import { createApp } from './app'
|
|
|
|
export default context => new Promise((resolve, reject) => {
|
|
const { app, router } = createApp(true /* isServer */)
|
|
const { url } = context
|
|
const { fullPath } = router.resolve(url).route
|
|
|
|
if (fullPath !== url) {
|
|
return reject({ url: fullPath })
|
|
}
|
|
|
|
router.push(url)
|
|
router.onReady(() => resolve(app))
|
|
})
|