vitepress
Advanced tools
Comparing version 0.10.6 to 0.10.7
@@ -0,1 +1,11 @@ | ||
## [0.10.7](https://github.com/vuejs/vitepress/compare/v0.10.6...v0.10.7) (2021-01-05) | ||
### Features | ||
Bump to Vite 2.0.0-beta.8 | ||
### Bug Fixes | ||
- scrollbar when using line highlight ([#200](https://github.com/vuejs/vitepress/issues/200)) ([b6ba8a9](https://github.com/vuejs/vitepress/commit/b6ba8a943cc0488410a438c6c2f277c1c33a90bf)) | ||
## [0.10.6](https://github.com/vuejs/vitepress/compare/v0.10.5...v0.10.6) (2021-01-04) | ||
@@ -2,0 +12,0 @@ |
@@ -6,3 +6,3 @@ import { watchEffect } from 'vue'; | ||
const updateHeadTags = (newTags) => { | ||
if (process.env.NODE_ENV === 'production' && isFirstUpdate) { | ||
if (import.meta.env.PROD && isFirstUpdate) { | ||
// in production, the initial meta tags are already pre-rendered so we | ||
@@ -9,0 +9,0 @@ // skip the first update. |
@@ -0,1 +1,2 @@ | ||
import 'vite/dynamic-import-polyfill'; | ||
import { App } from 'vue'; | ||
@@ -2,0 +3,0 @@ import { Router } from './router'; |
@@ -0,1 +1,2 @@ | ||
import 'vite/dynamic-import-polyfill'; | ||
import { createApp as createClientApp, createSSRApp, h } from 'vue'; | ||
@@ -45,3 +46,3 @@ import { inBrowser, pathToFile } from './utils'; | ||
function newApp() { | ||
return process.env.NODE_ENV === 'production' | ||
return import.meta.env.PROD | ||
? createSSRApp(VitePressApp) | ||
@@ -70,2 +71,3 @@ : createClientApp(VitePressApp); | ||
// SSR: sync require | ||
// @ts-ignore | ||
return require(pageFilePath); | ||
@@ -72,0 +74,0 @@ }, NotFound); |
@@ -52,8 +52,7 @@ import { defineAsyncComponent } from 'vue'; | ||
export function mixinGlobalComponents(app) { | ||
const isProd = process.env.NODE_ENV === 'production'; | ||
app.component('Content', Content); | ||
app.component('ClientOnly', ClientOnly); | ||
app.component('Debug', isProd | ||
app.component('Debug', import.meta.env.PROD | ||
? () => null | ||
: defineAsyncComponent(() => import('./components/Debug.vue'))); | ||
} |
@@ -39,3 +39,2 @@ "use strict"; | ||
...options, | ||
// @ts-ignore | ||
ssr, | ||
@@ -42,0 +41,0 @@ base: config.site.base, |
@@ -34,3 +34,2 @@ "use strict"; | ||
alias: aliases, | ||
transformInclude: /\.md$/, | ||
define: { | ||
@@ -37,0 +36,0 @@ __CARBON__: !!((_a = site.themeConfig.carbonAds) === null || _a === void 0 ? void 0 : _a.carbon), |
{ | ||
"name": "vitepress", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"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.4", | ||
"vite": "^2.0.0-beta.8", | ||
"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
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
232423
3645
11
Updatedvite@^2.0.0-beta.8