diff --git a/package.json b/package.json index c0fc4b3b..e33a7305 100644 --- a/package.json +++ b/package.json @@ -88,7 +88,7 @@ "prismjs": "^1.23.0", "sirv": "^1.0.11", "slash": "^3.0.0", - "vite": "^2.0.0-beta.67", + "vite": "^2.0.0-beta.70", "vue": "^3.0.5" }, "devDependencies": { diff --git a/src/node/plugin.ts b/src/node/plugin.ts index a89c9d87..7a6e3acf 100644 --- a/src/node/plugin.ts +++ b/src/node/plugin.ts @@ -42,7 +42,9 @@ export function createVitePressPlugin( config() { return { - alias, + resolve: { + alias + }, define: { __CARBON__: !!site.themeConfig.carbonAds?.carbon, __BSA__: !!site.themeConfig.carbonAds?.custom,