vitepress
Advanced tools
Comparing version 0.10.7 to 0.10.8
@@ -0,1 +1,7 @@ | ||
## [0.10.8](https://github.com/vuejs/vitepress/compare/v0.10.7...v0.10.8) (2021-01-11) | ||
### Bug Fixes | ||
- resolve page hash case-insenstively, close [#202](https://github.com/vuejs/vitepress/issues/202) ([#203](https://github.com/vuejs/vitepress/issues/203)) ([bac1ce2](https://github.com/vuejs/vitepress/commit/bac1ce2d01469ff7586437f43b0d665b1c5eb278)) | ||
## [0.10.7](https://github.com/vuejs/vitepress/compare/v0.10.6...v0.10.7) (2021-01-05) | ||
@@ -2,0 +8,0 @@ |
@@ -92,3 +92,3 @@ import 'vite/dynamic-import-polyfill'; | ||
const { app, router } = createApp(); | ||
// wait unitl page component is fetched before mounting | ||
// wait until page component is fetched before mounting | ||
router.go().then(() => { | ||
@@ -95,0 +95,0 @@ app.mount('#app'); |
@@ -10,3 +10,3 @@ import { reactive, inject, markRaw, nextTick, readonly } from 'vue'; | ||
// this will be set upon initial page load, which is before | ||
// the app is mounted, so it's guaranteed to be avaiable in | ||
// the app is mounted, so it's guaranteed to be available in | ||
// components | ||
@@ -13,0 +13,0 @@ data: null |
@@ -17,3 +17,3 @@ export const inBrowser = typeof window !== 'undefined'; | ||
if (import.meta.env.DEV) { | ||
// awlays force re-fetch content in dev | ||
// always force re-fetch content in dev | ||
pagePath += `.md?t=${Date.now()}`; | ||
@@ -30,3 +30,3 @@ } | ||
// injected directly in the page's html | ||
const pageHash = __VP_HASH_MAP__[pagePath]; | ||
const pageHash = __VP_HASH_MAP__[pagePath.toLowerCase()]; | ||
pagePath = `${base}assets/${pagePath}.${pageHash}.js`; | ||
@@ -33,0 +33,0 @@ } |
@@ -26,3 +26,3 @@ "use strict"; | ||
// since the static content is already on the page! | ||
const pageHash = pageToHashMap[pageName]; | ||
const pageHash = pageToHashMap[pageName.toLowerCase()]; | ||
const pageClientJsFileName = `assets/${pageName}.${pageHash}.lean.js`; | ||
@@ -29,0 +29,0 @@ // resolve page data so we can render head tags |
@@ -103,3 +103,3 @@ "use strict"; | ||
const hash = chunk.fileName.match(hashRE)[1]; | ||
pageToHashMap[chunk.name] = hash; | ||
pageToHashMap[chunk.name.toLowerCase()] = hash; | ||
// inject another chunk with the content stripped | ||
@@ -106,0 +106,0 @@ bundle[name + '-lean'] = { |
{ | ||
"name": "vitepress", | ||
"version": "0.10.7", | ||
"version": "0.10.8", | ||
"description": "Vite & Vue powered static site generator", | ||
@@ -91,3 +91,3 @@ "main": "dist/node/index.js", | ||
"slash": "^3.0.0", | ||
"vite": "^2.0.0-beta.8", | ||
"vite": "^2.0.0-beta.21", | ||
"vue": "^3.0.5" | ||
@@ -94,0 +94,0 @@ }, |
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
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
232852
Updatedvite@^2.0.0-beta.21