Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
inputs:
tag:
type: choice
description: "Release Npm Tag"
description: 'Release Npm Tag'
required: true
default: "nightly"
default: 'nightly'
options:
- alpha
- beta
Expand All @@ -18,7 +18,7 @@ on:

dry_run:
type: boolean
description: "DryRun release"
description: 'DryRun release'
required: true
default: false

Expand All @@ -44,7 +44,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 24.14.1
cache: "pnpm"
cache: 'pnpm'

# Update npm to the latest version to enable OIDC
- name: Update npm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: 24.14.1
cache: "pnpm"
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["biomejs.biome"]
"recommendations": ["esbenp.prettier-vscode"]
}
16 changes: 1 addition & 15 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{
"search.useIgnoreFiles": true,
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
}
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,11 @@ new ReactRefreshPlugin({
- Type: `string`
- Default: `builtin:react-refresh-loader`

Be default, the plugin uses `builtin:react-refresh-loader` loader implementation [from Rspack](https://github.com/web-infra-dev/rspack/tree/main/crates/rspack_loader_react_refresh) in order ot inject
the React Refresh utilities into each module. `reactRefreshLoader` option allows to specify the loader, that implements
custom React Refresh instrumentation if needed.
By default, the plugin uses the `builtin:react-refresh-loader` loader implementation [from Rspack](https://github.com/web-infra-dev/rspack/tree/main/crates/rspack_loader_react_refresh) to inject the React Refresh utilities into each module. The `reactRefreshLoader` option allows you to specify a loader that implements custom React Refresh instrumentation if needed.

```js
new ReactRefreshPlugin({
reactRefreshLoader: 'my-advanced-react-refresh-loader',
reactRefreshLoader: 'my-advanced-react-refresh-loader',
});
```

Expand Down
32 changes: 0 additions & 32 deletions biome.json

This file was deleted.

20 changes: 9 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,23 @@
"scripts": {
"build": "rslib",
"dev": "rslib -w",
"lint": "biome check .",
"lint:write": "biome check . --write",
"lint": "rslint && prettier -c .",
"lint:write": "rslint --fix && prettier -w .",
"prepare": "simple-git-hooks && npm run build",
"test": "rstest",
"release": "node ./scripts/release.js",
"bump": "npx bumpp --no-push --no-tag --no-commit"
},
"files": ["client", "dist"],
"files": [
"client",
"dist"
],
"simple-git-hooks": {
"pre-commit": "npx nano-staged"
},
"nano-staged": {
"*.{js,jsx,ts,tsx,mjs,cjs}": [
"biome check --write --no-errors-on-unmatched"
]
"pre-commit": "pnpm run lint:write"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@rslib/core": "^0.20.3",
"@rslint/core": "^0.3.4",
"@rspack/core": "2.0.0-rc.0",
"@rstest/core": "^0.9.6",
"@types/node": "^24.12.2",
Expand All @@ -45,7 +43,7 @@
"cross-env": "^10.1.0",
"execa": "9.6.1",
"fs-extra": "11.3.4",
"nano-staged": "^0.9.0",
"prettier": "^3.8.1",
"react-refresh": "^0.18.0",
"semver": "7.7.4",
"simple-git-hooks": "^2.13.1",
Expand Down
Loading
Loading