From: Evan You Date: Tue, 26 Dec 2023 08:32:53 +0000 (+0800) Subject: fix: also export runtime error strings in all cjs builds X-Git-Tag: v3.4.0-rc.3~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38706e4a1e5e5380e7df910b2a784d0a9bc9db29;p=thirdparty%2Fvuejs%2Fcore.git fix: also export runtime error strings in all cjs builds --- diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 422d7e772a..fc20b37162 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -148,7 +148,7 @@ import { ErrorTypeStrings as _ErrorTypeStrings } from './errorHandling' * @internal */ export const ErrorTypeStrings = ( - __ESM_BUNDLER__ || __DEV__ ? _ErrorTypeStrings : null + __ESM_BUNDLER__ || __NODE_JS__ || __DEV__ ? _ErrorTypeStrings : null ) as typeof _ErrorTypeStrings // For devtools