浏览代码

fix: also export runtime error strings in all cjs builds

Evan You 2 年之前
父节点
当前提交
38706e4a1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/runtime-core/src/index.ts

+ 1 - 1
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