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

This reverts commit b61f36d853.
pull/2723/head
Divyansh Singh 1 year ago committed by GitHub
parent 7f0c18e013
commit a56d608bec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,15 +18,12 @@ 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