Skip to content

Commit

Permalink
fix(build): use vue dev build when DEBUG is truthy (#2689)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Jul 27, 2023
1 parent 51f28bf commit b61f36d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/node/alias.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b61f36d

Please sign in to comment.