From a56d608bec427ad51a9edb620d8fb01ebae29550 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Wed, 2 Aug 2023 10:59:21 +0530 Subject: [PATCH] revert: #2689 (#2722) Revert "fix(build): use vue dev build when DEBUG is truthy (#2689)" This reverts commit b61f36d85326912ca67f552ecbe89aa4ca0b1919. --- src/node/alias.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/node/alias.ts b/src/node/alias.ts index c485a33b7f12..aeefcbe1c088 100644 --- a/src/node/alias.ts +++ b/src/node/alias.ts @@ -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 = { '@theme': themeDir, [SITE_DATA_ID]: SITE_DATA_REQUEST_PATH