We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51f28bf commit b61f36dCopy full SHA for b61f36d
src/node/alias.ts
@@ -18,12 +18,15 @@ export const DEFAULT_THEME_PATH = join(DIST_CLIENT_PATH, 'theme-default')
18
export const SITE_DATA_ID = '@siteData'
19
export const SITE_DATA_REQUEST_PATH = '/' + SITE_DATA_ID
20
21
-const vueRuntimePath = 'vue/dist/vue.runtime.esm-bundler.js'
22
-
23
export function resolveAliases(
24
{ root, themeDir }: SiteConfig,
25
ssr: boolean
26
): AliasOptions {
+ const vueRuntimePath =
+ 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
+
30
const paths: Record<string, string> = {
31
'@theme': themeDir,
32
[SITE_DATA_ID]: SITE_DATA_REQUEST_PATH
0 commit comments