Skip to content

Commit 2c25855

Browse files
authored
fix(build): use vue dev build when DEBUG is truthy (#2622)
1 parent e02adfe commit 2c25855

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/node/alias.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export const DEFAULT_THEME_PATH = join(DIST_CLIENT_PATH, 'theme-default')
1818
export const SITE_DATA_ID = '@siteData'
1919
export const SITE_DATA_REQUEST_PATH = '/' + SITE_DATA_ID
2020

21-
const vueRuntimePath = 'vue/dist/vue.runtime.esm-bundler.js'
21+
const vueRuntimePath = process.env.DEBUG
22+
? 'vue/dist/vue.runtime.esm-browser.js'
23+
: 'vue/dist/vue.runtime.esm-browser.prod.js'
2224

2325
export function resolveAliases(
2426
{ root, themeDir }: SiteConfig,

0 commit comments

Comments
 (0)