vitepress
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -0,1 +1,11 @@ | ||
## [0.7.2](https://github.com/vuejs/vitepress/compare/v0.7.1...v0.7.2) (2020-11-02) | ||
### Bug Fixes | ||
- adapt to vite fix of ssr build asset paths ([6b3fbe3](https://github.com/vuejs/vitepress/commit/6b3fbe31a31adad2a836c45905bde86332e4f1f6)) | ||
### Features | ||
- add home page feature ([#108](https://github.com/vuejs/vitepress/issues/108)) ([3a0af0b](https://github.com/vuejs/vitepress/commit/3a0af0b6141ed739aa4a2d72f43d0fa63739c695)) | ||
## [0.7.1](https://github.com/vuejs/vitepress/compare/v0.7.0...v0.7.1) (2020-10-30) | ||
@@ -2,0 +12,0 @@ |
import { Ref } from 'vue'; | ||
import { SiteData } from '../../../../types/shared'; | ||
export declare type SiteDataRef<T = any> = Ref<SiteData<T>>; | ||
export declare const siteDataRef: Ref<SiteData>; | ||
export declare function useSiteData<T = any>(): Ref<SiteData<T>>; |
@@ -41,3 +41,3 @@ import { createApp as createClientApp, createSSRApp, ref, readonly } from 'vue'; | ||
// in browser: native dynamic import | ||
return import(pagePath).then((page) => { | ||
return import(/*@vite-ignore*/ pagePath).then((page) => { | ||
if (page.__pageData) { | ||
@@ -44,0 +44,0 @@ pageDataRef.value = readonly(JSON.parse(page.__pageData)); |
@@ -13,3 +13,3 @@ "use strict"; | ||
result, appChunk, cssChunk, pageToHashMap, hashMapStirng) { | ||
const { createApp } = require(path_1.default.join(config.tempDir, 'app.js')); | ||
const { createApp } = require(path_1.default.join(config.tempDir, `_assets/app.js`)); | ||
const { app, router } = createApp(); | ||
@@ -29,3 +29,3 @@ const routePath = `/${page.replace(/\.md$/, '')}`; | ||
// resolve page data so we can render head tags | ||
const { __pageData } = require(path_1.default.join(config.tempDir, pageServerJsFileName)); | ||
const { __pageData } = require(path_1.default.join(config.tempDir, `_assets`, pageServerJsFileName)); | ||
const pageData = JSON.parse(__pageData); | ||
@@ -32,0 +32,0 @@ const assetPath = `${siteData.base}_assets/`; |
{ | ||
"name": "vitepress", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "", | ||
@@ -73,3 +73,3 @@ "main": "dist/node/index.js", | ||
"slash": "^3.0.0", | ||
"vite": "^1.0.0-rc.8", | ||
"vite": "^1.0.0-rc.9", | ||
"vue": "^3.0.2" | ||
@@ -76,0 +76,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
194341
3302
Updatedvite@^1.0.0-rc.9