Skip to content

Commit 37b59a9

Browse files
Support custom and whm socket integration type (#13)
1 parent 7251acb commit 37b59a9

File tree

10 files changed

+300
-44
lines changed

10 files changed

+300
-44
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ It is most useful when multiple instances of React Refresh is running together s
146146

147147
Modify the behavior of the error overlay.
148148

149+
Checkout [OverlayOptions](https://github.com/rspack-contrib/rspack-plugin-react-refresh/blob/main/src/options.ts#L4) type signature for more details.
150+
149151
- Enable the error overlay:
150152

151153
```js
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const path = require('node:path');
1+
import { type JestConfigWithTsJest, createDefaultPreset } from 'ts-jest';
22

3-
/** @type {import('jest').Config} */
4-
const config = {
3+
export default {
4+
...createDefaultPreset(),
55
watchPathIgnorePatterns: ['<rootDir>/dist', '<rootDir>/tests/dist'],
66
testEnvironment: './scripts/patch-node-env.cjs',
77
testTimeout: process.env.CI ? 60000 : 30000,
@@ -10,6 +10,4 @@ const config = {
1010
updateSnapshot:
1111
process.argv.includes('-u') || process.argv.includes('--updateSnapshot'),
1212
},
13-
};
14-
15-
module.exports = config;
13+
} satisfies JestConfigWithTsJest;

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,30 +39,32 @@
3939
"devDependencies": {
4040
"@biomejs/biome": "^1.9.4",
4141
"@rspack/core": "1.1.4",
42-
"@types/node": "^22.10.1",
4342
"@types/jest": "29.5.14",
44-
"react-refresh": "^0.14.2",
43+
"@types/node": "^22.10.1",
4544
"cross-env": "^7.0.3",
4645
"execa": "9.5.1",
4746
"fs-extra": "11.2.0",
4847
"jest": "29.7.0",
4948
"jest-cli": "29.7.0",
5049
"jest-environment-node": "29.7.0",
5150
"nano-staged": "^0.8.0",
51+
"react-refresh": "^0.14.2",
5252
"semver": "7.6.3",
5353
"simple-git-hooks": "^2.11.1",
5454
"ts-jest": "29.2.5",
55+
"ts-node": "^10.9.2",
5556
"typescript": "5.7.2"
5657
},
5758
"dependencies": {
5859
"error-stack-parser": "^2.1.4",
5960
"html-entities": "^2.5.2"
6061
},
6162
"peerDependencies": {
62-
"react-refresh": ">=0.10.0 <1.0.0"
63+
"react-refresh": ">=0.10.0 <1.0.0",
64+
"webpack-hot-middleware": "2.x"
6365
},
6466
"peerDependenciesMeta": {
65-
"react-refresh": {
67+
"webpack-hot-middleware": {
6668
"optional": true
6769
}
6870
},

0 commit comments

Comments
 (0)