]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix: also export runtime error strings in all cjs builds
authorEvan You <yyx990803@gmail.com>
Tue, 26 Dec 2023 08:32:53 +0000 (16:32 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 26 Dec 2023 08:32:53 +0000 (16:32 +0800)
packages/runtime-core/src/index.ts

index 422d7e772a76124af7c568fb70eedbecb813f635..fc20b37162de531cb82095c34d204fd335354ea9 100644 (file)
@@ -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