Skip to content

Commit

Permalink
Support custom and whm socket integration type (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarGronich authored Dec 30, 2024
1 parent 7251acb commit 37b59a9
Show file tree
Hide file tree
Showing 10 changed files with 300 additions and 44 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ It is most useful when multiple instances of React Refresh is running together s

Modify the behavior of the error overlay.

Checkout [OverlayOptions](https://github.com/rspack-contrib/rspack-plugin-react-refresh/blob/main/src/options.ts#L4) type signature for more details.

- Enable the error overlay:

```js
Expand Down
10 changes: 4 additions & 6 deletions jest.config.js → jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('node:path');
import { type JestConfigWithTsJest, createDefaultPreset } from 'ts-jest';

/** @type {import('jest').Config} */
const config = {
export default {
...createDefaultPreset(),
watchPathIgnorePatterns: ['<rootDir>/dist', '<rootDir>/tests/dist'],
testEnvironment: './scripts/patch-node-env.cjs',
testTimeout: process.env.CI ? 60000 : 30000,
Expand All @@ -10,6 +10,4 @@ const config = {
updateSnapshot:
process.argv.includes('-u') || process.argv.includes('--updateSnapshot'),
},
};

module.exports = config;
} satisfies JestConfigWithTsJest;
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,32 @@
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@rspack/core": "1.1.4",
"@types/node": "^22.10.1",
"@types/jest": "29.5.14",
"react-refresh": "^0.14.2",
"@types/node": "^22.10.1",
"cross-env": "^7.0.3",
"execa": "9.5.1",
"fs-extra": "11.2.0",
"jest": "29.7.0",
"jest-cli": "29.7.0",
"jest-environment-node": "29.7.0",
"nano-staged": "^0.8.0",
"react-refresh": "^0.14.2",
"semver": "7.6.3",
"simple-git-hooks": "^2.11.1",
"ts-jest": "29.2.5",
"ts-node": "^10.9.2",
"typescript": "5.7.2"
},
"dependencies": {
"error-stack-parser": "^2.1.4",
"html-entities": "^2.5.2"
},
"peerDependencies": {
"react-refresh": ">=0.10.0 <1.0.0"
"react-refresh": ">=0.10.0 <1.0.0",
"webpack-hot-middleware": "2.x"
},
"peerDependenciesMeta": {
"react-refresh": {
"webpack-hot-middleware": {
"optional": true
}
},
Expand Down
Loading

0 comments on commit 37b59a9

Please sign in to comment.