@rspack/plugin-react-refresh 1.0.0-alpha.1 → 1.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,9 +14,7 @@ function getCurrentScriptSource() {
|
|
14
14
|
else {
|
15
15
|
// Fallback to getting all scripts running in the document,
|
16
16
|
// and finding the last one injected.
|
17
|
-
const scriptElementsWithSrc = Array.prototype.filter.call(document.scripts || [],
|
18
|
-
return elem.getAttribute("src");
|
19
|
-
});
|
17
|
+
const scriptElementsWithSrc = Array.prototype.filter.call(document.scripts || [], elem => elem.getAttribute("src"));
|
20
18
|
if (!scriptElementsWithSrc.length)
|
21
19
|
return;
|
22
20
|
const currentScript = scriptElementsWithSrc[scriptElementsWithSrc.length - 1];
|
@@ -15,7 +15,7 @@ function getSocketUrlParts(resourceQuery, metadata) {
|
|
15
15
|
if (resourceQuery) {
|
16
16
|
const parsedQuery = {};
|
17
17
|
const searchParams = new URLSearchParams(resourceQuery.slice(1));
|
18
|
-
searchParams.forEach(
|
18
|
+
searchParams.forEach((value, key) => {
|
19
19
|
// @ts-expect-error -- ignore
|
20
20
|
parsedQuery[key] = value;
|
21
21
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@rspack/plugin-react-refresh",
|
3
|
-
"version": "1.0.0-alpha.
|
3
|
+
"version": "1.0.0-alpha.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "React refresh plugin for rspack",
|
6
6
|
"main": "dist/index.js",
|
@@ -30,12 +30,12 @@
|
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
32
|
"react-refresh": "0.14.0",
|
33
|
-
"@rspack/core": "1.0.0-alpha.
|
34
|
-
"@rspack/plugin-react-refresh": "1.0.0-alpha.
|
33
|
+
"@rspack/core": "1.0.0-alpha.3",
|
34
|
+
"@rspack/plugin-react-refresh": "1.0.0-alpha.3"
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
|
-
"
|
38
|
-
"
|
37
|
+
"error-stack-parser": "^2.0.6",
|
38
|
+
"html-entities": "^2.1.0"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"react-refresh": ">=0.10.0 <1.0.0"
|