Skip to content

Commit b61f36d

Browse files
authored
fix(build): use vue dev build when DEBUG is truthy (#2689)
1 parent 51f28bf commit b61f36d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/node/alias.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ 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'
22-
2321
export function resolveAliases(
2422
{ root, themeDir }: SiteConfig,
2523
ssr: boolean
2624
): AliasOptions {
25+
const vueRuntimePath =
26+
process.env.DEBUG || process.env.NODE_ENV !== 'production'
27+
? 'vue/dist/vue.runtime.esm-browser.js'
28+
: 'vue/dist/vue.runtime.esm-browser.prod.js'
29+
2730
const paths: Record<string, string> = {
2831
'@theme': themeDir,
2932
[SITE_DATA_ID]: SITE_DATA_REQUEST_PATH

0 commit comments

Comments
 (0)