@modern-js/builder 3.5.0 → 3.6.0

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.
@@ -3,7 +3,7 @@ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/
3
3
  import path from "path";
4
4
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
5
5
  import { dirname as __rspack_dirname } from "node:path";
6
- var rscConfig_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
6
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
7
7
  const ASYNC_STORAGE_PATTERN = /universal[/\\]async_storage/;
8
8
  const RSC_COMMON_LAYER = 'rsc-common';
9
9
  const ENTRY_NAME_VAR = '__MODERN_JS_ENTRY_NAME';
@@ -35,7 +35,7 @@ function pluginRscConfig() {
35
35
  try {
36
36
  loaderPath = require.resolve('../shared/rsc/rsc-server-entry-loader');
37
37
  } catch {
38
- loaderPath = path.resolve(rscConfig_dirname, '../shared/rsc/rsc-server-entry-loader');
38
+ loaderPath = path.resolve(__rspack_import_meta_dirname__, '../shared/rsc/rsc-server-entry-loader');
39
39
  }
40
40
  chain.module.rule('rsc-server-entry').test(/\.(tsx?|jsx?)$/).resource(combinedPattern).exclude.add(/node_modules/).end().use('rsc-server-entry-loader').loader(loaderPath).end();
41
41
  }
@@ -3,7 +3,7 @@ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/
3
3
  import path from "path";
4
4
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
5
5
  import { dirname as __rspack_dirname } from "node:path";
6
- var rscClientBrowserFallback_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
6
+ var __rspack_import_meta_dirname__ = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
7
7
  function rscClientBrowserFallbackPlugin() {
8
8
  return {
9
9
  name: 'builder:rsc-client-browser-fallback',
@@ -12,7 +12,7 @@ function rscClientBrowserFallbackPlugin() {
12
12
  try {
13
13
  emptyModulePath = require.resolve('./rscEmptyModule');
14
14
  } catch {
15
- emptyModulePath = path.resolve(rscClientBrowserFallback_dirname, 'rscEmptyModule');
15
+ emptyModulePath = path.resolve(__rspack_import_meta_dirname__, 'rscEmptyModule');
16
16
  }
17
17
  api.modifyRspackConfig((config)=>{
18
18
  config.resolve ??= {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/builder",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "description": "A builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,12 +41,12 @@
41
41
  "@swc/core": "1.15.41",
42
42
  "@swc/helpers": "^0.5.17",
43
43
  "autoprefixer": "10.4.27",
44
- "browserslist": "4.28.2",
44
+ "browserslist": "4.28.4",
45
45
  "core-js": "^3.48.0",
46
46
  "cssnano": "6.1.2",
47
47
  "html-minifier-terser": "^7.2.0",
48
48
  "lodash": "^4.18.1",
49
- "postcss": "^8.5.15",
49
+ "postcss": "^8.5.16",
50
50
  "postcss-custom-properties": "13.3.12",
51
51
  "postcss-flexbugs-fixes": "5.0.2",
52
52
  "postcss-font-variant": "5.0.0",
@@ -57,17 +57,17 @@
57
57
  "rsbuild-plugin-rsc": "0.1.1",
58
58
  "rspack-manifest-plugin": "5.2.2",
59
59
  "ts-deepmerge": "7.0.3",
60
- "@modern-js/utils": "3.5.0"
60
+ "@modern-js/utils": "3.6.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@rslib/core": "0.23.0",
63
+ "@rslib/core": "0.23.2",
64
64
  "@types/html-minifier-terser": "^7.0.2",
65
65
  "@types/lodash": "^4.17.24",
66
66
  "react": "^19.2.7",
67
67
  "terser": "^5.48.0",
68
68
  "typescript": "^5.3.0",
69
69
  "@modern-js/rslib": "2.68.10",
70
- "@modern-js/types": "3.5.0",
70
+ "@modern-js/types": "3.6.0",
71
71
  "@scripts/rstest-config": "2.66.0"
72
72
  },
73
73
  "publishConfig": {