From 38706e4a1e5e5380e7df910b2a784d0a9bc9db29 Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 26 Dec 2023 16:32:53 +0800 Subject: [PATCH] fix: also export runtime error strings in all cjs builds --- packages/runtime-core/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 422d7e772..fc20b3716 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