Skip to content
Open
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*dist/
*node_modules/
*types/
*umd/
*__tmp__

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
cache: yarn
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn install --frozen-lockfile${{ matrix.node-version == '18' && ' --ignore-engines' || '' }}
run: yarn install --frozen-lockfile${{ matrix.node-version < '22' && ' --ignore-engines' || '' }}
- name: Run Tests
run: yarn test --testPathIgnorePatterns conformance
env:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
cache: yarn
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: yarn install --frozen-lockfile${{ matrix.node-version == '18' && ' --ignore-engines' || '' }}
run: yarn install --frozen-lockfile${{ matrix.node-version < '22' && ' --ignore-engines' || '' }}
- name: Disable AppArmor
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Run Conformance Tests
Expand Down
25 changes: 15 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
"@types/node": "^24.10.1",
"@types/webpack": "^5.28.5",
"babel-loader": "^10.0.0",
"cross-env": "^7.0.3",
"cross-env": "^10.1.0",
"cross-spawn": "^7.0.5",
"del-cli": "^6.0.0",
"del-cli": "^7.0.0",
"eslint": "^8.6.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-prettier": "^5.1.3",
Expand All @@ -93,17 +93,17 @@
"jest-location-mock": "^2.0.0",
"memfs": "^4.9.2",
"module-alias": "^2.2.3",
"nanoid": "^3.3.8",
"npm-run-all2": "^7.0.2",
"nanoid": "^3.3.12",
"npm-run-all2": "^9.0.1",
"prettier": "^3.3.0",
"puppeteer": "^24.4.0",
"puppeteer": "^24.43.1",
"react-refresh": "^0.18.0",
"sourcemap-validator": "^2.1.0",
"terser-webpack-plugin": "^5.3.10",
"type-fest": "^4.41.0",
"typescript": "~5.9.3",
"type-fest": "^5.6.0",
"typescript": "~6.0.3",
"webpack": "^5.104.1",
"webpack-cli": "^6.0.1",
"webpack-cli": "^7.0.3",
"webpack-dev-server": "^5.2.4",
"webpack-dev-server-v4": "npm:webpack-dev-server@^4.8.0",
"webpack-hot-middleware": "^2.26.1",
Expand Down Expand Up @@ -141,9 +141,14 @@
}
},
"resolutions": {
"@types/retry": "^0.12.0",
"memfs": "^4.0.0",
"rimraf": "^5.0.0",
"type-fest": "^4.41.0"
"memfs/@jsonjoy.com/json-pack": "^17.67.0",
"memfs/@jsonjoy.com/util": "^17.67.0",
"nanoid": "^3.3.12",
"rimraf": "^6.0.0",
"tslib": "^2.8.0",
"type-fest": "^5.6.0"
},
"engines": {
"node": ">=18.12"
Expand Down
1 change: 0 additions & 1 deletion test/loader/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ if (typeof Promise !== 'undefined' && $ReactRefreshCurrentExports$ instanceof Pr
"module.exports = 'Test';\\n"
],
"names": [],
"ignoreList": [],
"sourceRoot": ""
}"
`);
Expand Down
2 changes: 1 addition & 1 deletion types/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ declare class ReactRefreshPlugin {
/**
* @param {import('./types').ReactRefreshPluginOptions} [options] Options for react-refresh-plugin.
*/
constructor(options?: import('./types').ReactRefreshPluginOptions | undefined);
constructor(options?: import('./types').ReactRefreshPluginOptions);
/**
* @readonly
* @type {import('./types').NormalizedPluginOptions}
Expand Down
2 changes: 1 addition & 1 deletion types/loader/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export = ReactRefreshLoader;
declare function ReactRefreshLoader(
this: import('webpack').LoaderContext<import('./types').ReactRefreshLoaderOptions>,
source: string,
inputSourceMap?: import('source-map').RawSourceMap | undefined,
inputSourceMap?: import('source-map').RawSourceMap,
meta?: any
): void;
2 changes: 1 addition & 1 deletion types/options/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export function d<T, Property extends keyof T>(
object: T,
property: Property,
defaultValue?: T[Property] | undefined
defaultValue?: T[Property]
): T[Property];
/**
* Resolves the value for a nested object option.
Expand Down
1,417 changes: 690 additions & 727 deletions yarn.lock

Large diffs are not rendered by default.

Loading