react-cosmos-plugin-rspack 1.0.1 → 1.0.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.
- package/dist/client/errorOverlay/reactErrorOverlay.js +1310 -1202
- package/dist/client/index.js +1321 -1213
- package/dist/server/rspackServerPlugin.js +13 -13
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/server/rspackConfigPlugin.ts
|
|
2
|
-
import * as path from "
|
|
2
|
+
import * as path from "path";
|
|
3
3
|
|
|
4
4
|
// src/server/rspackConfig/constants.ts
|
|
5
5
|
var RENDERER_FILENAME = "renderer.html";
|
|
@@ -18,16 +18,16 @@ async function rspackConfigPlugin({
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// src/server/rspackDevServerPlugin.ts
|
|
21
|
-
import * as path8 from "
|
|
21
|
+
import * as path8 from "path";
|
|
22
22
|
import { serveStaticDir } from "react-cosmos";
|
|
23
23
|
import webpackHotMiddleware from "webpack-hot-middleware";
|
|
24
24
|
|
|
25
25
|
// src/server/cosmosConfig/createRspackCosmosConfig.ts
|
|
26
|
-
import * as path3 from "
|
|
26
|
+
import * as path3 from "path";
|
|
27
27
|
import { fileExists } from "react-cosmos";
|
|
28
28
|
|
|
29
29
|
// src/server/utils/resolveLoose.ts
|
|
30
|
-
import * as path2 from "
|
|
30
|
+
import * as path2 from "path";
|
|
31
31
|
|
|
32
32
|
// src/server/utils/isNodeError.ts
|
|
33
33
|
function isNodeError(err) {
|
|
@@ -35,7 +35,7 @@ function isNodeError(err) {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// src/server/utils/resolve.ts
|
|
38
|
-
import { createRequire } from "
|
|
38
|
+
import { createRequire } from "module";
|
|
39
39
|
function resolve(moduleId) {
|
|
40
40
|
const require2 = createRequire(import.meta.url);
|
|
41
41
|
return require2.resolve(moduleId);
|
|
@@ -116,8 +116,8 @@ function getReloadOnFail({ reloadOnFail = false }) {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
// src/server/utils/requireModule.ts
|
|
119
|
-
import { createRequire as createRequire2 } from "
|
|
120
|
-
import * as path4 from "
|
|
119
|
+
import { createRequire as createRequire2 } from "module";
|
|
120
|
+
import * as path4 from "path";
|
|
121
121
|
function requireFrom(fromDirectory, moduleId) {
|
|
122
122
|
const require2 = createRequire2(path4.resolve(fromDirectory, "noop.js"));
|
|
123
123
|
return require2(moduleId);
|
|
@@ -151,10 +151,10 @@ function getRspack(rootDir) {
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
// src/server/rspackConfig/getDevRspackConfig.ts
|
|
154
|
-
import * as path7 from "
|
|
154
|
+
import * as path7 from "path";
|
|
155
155
|
|
|
156
156
|
// src/server/rspackConfig/getUserRspackConfig.ts
|
|
157
|
-
import * as path5 from "
|
|
157
|
+
import * as path5 from "path";
|
|
158
158
|
import {
|
|
159
159
|
getCliArgs,
|
|
160
160
|
importModule,
|
|
@@ -293,14 +293,14 @@ async function getBaseRspackConfig(cosmosConfig) {
|
|
|
293
293
|
}
|
|
294
294
|
|
|
295
295
|
// src/server/rspackConfig/resolveRspackClientPath.ts
|
|
296
|
-
import { createRequire as createRequire3 } from "
|
|
296
|
+
import { createRequire as createRequire3 } from "module";
|
|
297
297
|
function resolveRspackClientPath(relPath) {
|
|
298
298
|
const require2 = createRequire3(import.meta.url);
|
|
299
299
|
return require2.resolve(`../client/${relPath}`);
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
// src/server/rspackConfig/resolveRspackLoaderPath.ts
|
|
303
|
-
import { createRequire as createRequire4 } from "
|
|
303
|
+
import { createRequire as createRequire4 } from "module";
|
|
304
304
|
function resolveRspackLoaderPath() {
|
|
305
305
|
const require2 = createRequire4(import.meta.url);
|
|
306
306
|
return require2.resolve("./userImportsLoader.cjs");
|
|
@@ -328,7 +328,7 @@ function getUserImportsLoaderRule(cosmosConfig) {
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
// src/server/rspackConfig/getRspackConfigResolve.ts
|
|
331
|
-
import * as path6 from "
|
|
331
|
+
import * as path6 from "path";
|
|
332
332
|
function getRspackConfigResolve(cosmosConfig, rspackConfig) {
|
|
333
333
|
return resolveLocalReactDeps(cosmosConfig, rspackConfig.resolve);
|
|
334
334
|
}
|
|
@@ -604,7 +604,7 @@ function getRspackStaticPath({ devServer }) {
|
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
// src/server/rspackConfig/getExportRspackConfig.ts
|
|
607
|
-
import * as path9 from "
|
|
607
|
+
import * as path9 from "path";
|
|
608
608
|
async function getExportRspackConfig(cosmosConfig, userRspack) {
|
|
609
609
|
const baseRspackConfig = await getUserRspackConfig(cosmosConfig);
|
|
610
610
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cosmos-plugin-rspack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "rspack plugin for React Cosmos",
|
|
5
5
|
"repository": "https://github.com/birchill/react-cosmos-plugin-rspack/",
|
|
6
6
|
"author": "Birchill, Inc.",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@release-it/conventional-changelog": "10.0.1",
|
|
21
|
-
"@rspack/core": "1.3.
|
|
22
|
-
"@types/node": "22.15.
|
|
21
|
+
"@rspack/core": "1.3.15",
|
|
22
|
+
"@types/node": "22.15.30",
|
|
23
23
|
"@types/webpack-hot-middleware": "2.25.9",
|
|
24
|
-
"esbuild": "0.25.
|
|
24
|
+
"esbuild": "0.25.5",
|
|
25
25
|
"husky": "9.1.7",
|
|
26
|
-
"knip": "5.
|
|
27
|
-
"lint-staged": "
|
|
26
|
+
"knip": "5.60.2",
|
|
27
|
+
"lint-staged": "16.1.0",
|
|
28
28
|
"prettier": "3.5.3",
|
|
29
29
|
"react-cosmos": "6.2.3",
|
|
30
30
|
"react-cosmos-core": "6.2.0",
|
|
31
|
-
"react-error-overlay": "6.
|
|
31
|
+
"react-error-overlay": "6.0.9",
|
|
32
32
|
"react-plugin": "3.0.0-alpha.4",
|
|
33
|
-
"release-it": "19.0.
|
|
34
|
-
"tsup": "8.
|
|
33
|
+
"release-it": "19.0.3",
|
|
34
|
+
"tsup": "8.5.0",
|
|
35
35
|
"typescript": "5.8.3"
|
|
36
36
|
},
|
|
37
37
|
"prettier": {
|