Skip to content

Commit

Permalink
revert: #2689 (#2722)
Browse files Browse the repository at this point in the history
Revert "fix(build): use vue dev build when DEBUG is truthy (#2689)"

This reverts commit b61f36d.
  • Loading branch information
brc-dd committed Aug 2, 2023
1 parent 7f0c18e commit a56d608
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/node/alias.ts
Expand Up @@ -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
Expand Down

0 comments on commit a56d608

Please sign in to comment.