@bleedingdev/modern-js-runtime 3.5.0-ultramodern.0 → 3.5.0-ultramodern.10

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.
@@ -8,11 +8,11 @@ import { buildHtml } from "../shared.mjs";
8
8
  import { checkIsNode, hasStylesheetLink, safeReplace } from "../utils.mjs";
9
9
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
10
10
  import { dirname as __rspack_dirname } from "node:path";
11
- var beforeTemplate_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
11
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
12
12
  const readAsset = async (chunk)=>{
13
13
  const fs = await import("fs/promises");
14
14
  const path = await import("path");
15
- const filepath = path.join(beforeTemplate_dirname, chunk);
15
+ const filepath = path.join(__rspack_import_meta_dirname__, chunk);
16
16
  return fs.readFile(filepath, 'utf-8');
17
17
  };
18
18
  const checkIsInline = (chunk, enableInline)=>{
@@ -5,7 +5,7 @@ import { getMatchedRouteAssets, orderHydrationScriptChunks } from "../scriptOrde
5
5
  import { attributesToString, checkIsNode, hasStylesheetLink } from "../utils.mjs";
6
6
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
7
7
  import { dirname as __rspack_dirname } from "node:path";
8
- var loadable_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
8
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
9
9
  const extname = (uri)=>{
10
10
  if ('string' != typeof uri || !uri.includes('.')) return '';
11
11
  return `.${uri?.split('.').pop()}` || '';
@@ -28,7 +28,7 @@ const checkIsInline = (chunk, enableInline)=>{
28
28
  const readAsset = async (chunk)=>{
29
29
  const fs = await import("fs/promises");
30
30
  const path = await import("path");
31
- const filepath = path.resolve(loadable_dirname, chunk.filename);
31
+ const filepath = path.resolve(__rspack_import_meta_dirname__, chunk.filename);
32
32
  return fs.readFile(filepath, 'utf-8');
33
33
  };
34
34
  class LoadableCollector {
@@ -7,7 +7,7 @@ import { handleFileChange, handleGeneratorEntryCode, handleModifyEntrypoints } f
7
7
  import { updateNestedRoutesSpec } from "./nestedRoutesSpec.mjs";
8
8
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
9
9
  import { dirname as __rspack_dirname } from "node:path";
10
- var cli_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
10
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
11
11
  function isBuiltInRouteEntrypoint(entrypoint) {
12
12
  const entrypointRoutesOwner = getEntrypointRoutesOwner(entrypoint);
13
13
  if (entrypointRoutesOwner) return entrypointRoutesOwner === BUILT_IN_ROUTES_OWNER;
@@ -62,7 +62,7 @@ const routerPlugin = ()=>({
62
62
  source: {
63
63
  include: [
64
64
  /[\\/]node_modules[\\/]react-router[\\/]/,
65
- node_path.resolve(cli_dirname, '../runtime').replace('cjs', 'esm')
65
+ node_path.resolve(__rspack_import_meta_dirname__, '../runtime').replace('cjs', 'esm')
66
66
  ]
67
67
  }
68
68
  }));
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "modern",
18
18
  "modern.js"
19
19
  ],
20
- "version": "3.5.0-ultramodern.0",
20
+ "version": "3.5.0-ultramodern.10",
21
21
  "engines": {
22
22
  "node": ">=20"
23
23
  },
@@ -240,12 +240,12 @@
240
240
  "react-helmet": "^6.1.0",
241
241
  "react-helmet-async": "3.0.0",
242
242
  "react-is": "^19.2.7",
243
- "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.5.0-ultramodern.0",
244
- "@modern-js/render": "npm:@bleedingdev/modern-js-render@3.5.0-ultramodern.0",
245
- "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.0",
246
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.0",
247
- "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.5.0-ultramodern.0",
248
- "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.0"
243
+ "@modern-js/plugin": "npm:@bleedingdev/modern-js-plugin@3.5.0-ultramodern.10",
244
+ "@modern-js/plugin-data-loader": "npm:@bleedingdev/modern-js-plugin-data-loader@3.5.0-ultramodern.10",
245
+ "@modern-js/runtime-utils": "npm:@bleedingdev/modern-js-runtime-utils@3.5.0-ultramodern.10",
246
+ "@modern-js/render": "npm:@bleedingdev/modern-js-render@3.5.0-ultramodern.10",
247
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.5.0-ultramodern.10",
248
+ "@modern-js/utils": "npm:@bleedingdev/modern-js-utils@3.5.0-ultramodern.10"
249
249
  },
250
250
  "peerDependencies": {
251
251
  "react": "^19.2.7",
@@ -253,19 +253,19 @@
253
253
  },
254
254
  "devDependencies": {
255
255
  "@remix-run/web-fetch": "^4.4.2",
256
- "@rsbuild/core": "2.1.0",
257
- "@rslib/core": "0.23.0",
256
+ "@rsbuild/core": "2.1.1",
257
+ "@rslib/core": "0.23.1",
258
258
  "@testing-library/dom": "^10.4.1",
259
259
  "@testing-library/react": "^16.3.2",
260
260
  "@types/invariant": "^2.2.37",
261
261
  "@types/loadable__server": "5.12.11",
262
262
  "@types/node": "^26.0.1",
263
- "@typescript/native-preview": "7.0.0-dev.20260624.1",
263
+ "@typescript/native-preview": "7.0.0-dev.20260628.1",
264
264
  "react": "^19.2.7",
265
265
  "react-dom": "^19.2.7",
266
266
  "ts-node": "^10.9.2",
267
267
  "typescript": "^6.0.3",
268
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.0",
268
+ "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.5.0-ultramodern.10",
269
269
  "@scripts/rstest-config": "2.66.0"
270
270
  },
271
271
  "sideEffects": false,