diff --git a/packages/plugin-stream-error/CHANGELOG.md b/packages/plugin-stream-error/CHANGELOG.md index 857067ff71..4d07b1b4c4 100644 --- a/packages/plugin-stream-error/CHANGELOG.md +++ b/packages/plugin-stream-error/CHANGELOG.md @@ -5,3 +5,9 @@ ### Major Changes - f2c7df96: feat: plugin deal with stream error + +## 1.0.1 + +### Patch Change + +- feat: plugin export head stream error recover component diff --git a/packages/plugin-stream-error/package.json b/packages/plugin-stream-error/package.json index f59ce11ee5..eb98db096e 100644 --- a/packages/plugin-stream-error/package.json +++ b/packages/plugin-stream-error/package.json @@ -1,6 +1,6 @@ { "name": "@ice/plugin-stream-error", - "version": "1.0.0", + "version": "1.0.1", "description": "", "license": "MIT", "type": "module", @@ -9,7 +9,8 @@ "types": "./esm/index.d.ts", "import": "./esm/index.js", "default": "./esm/index.js" - } + }, + "./head-stream-error": "./esm/components/headStreamErrorRecoverScript.js" }, "main": "./esm/index.js", "types": "./esm/index.d.ts", diff --git a/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx b/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx new file mode 100644 index 0000000000..0594bad8a7 --- /dev/null +++ b/packages/plugin-stream-error/src/components/headStreamErrorRecoverScript.tsx @@ -0,0 +1,18 @@ +import React from 'react'; + +export default function HeadStreamErrorRecoverScript({ downgradeCSRHostname }) { + return ( +