fix(build): use vue dev build when DEBUG is truthy (#2689)

pull/2701/head
Divyansh Singh 1 year ago committed by GitHub
parent 51f28bfac9
commit b61f36d853
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,12 +18,15 @@ export const DEFAULT_THEME_PATH = join(DIST_CLIENT_PATH, 'theme-default')
export const SITE_DATA_ID = '@siteData'
export const SITE_DATA_REQUEST_PATH = '/' + SITE_DATA_ID
const vueRuntimePath = 'vue/dist/vue.runtime.esm-bundler.js'
export function resolveAliases(
{ root, themeDir }: SiteConfig,
ssr: boolean
): AliasOptions {
const vueRuntimePath =
process.env.DEBUG || process.env.NODE_ENV !== 'production'
? 'vue/dist/vue.runtime.esm-browser.js'
: 'vue/dist/vue.runtime.esm-browser.prod.js'
const paths: Record<string, string> = {
'@theme': themeDir,
[SITE_DATA_ID]: SITE_DATA_REQUEST_PATH

Loading…
Cancel
Save