@modern-js/builder 3.1.0 → 3.1.2

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.
@@ -1,4 +1,3 @@
1
- import { createRspackBuilder, parseConfig } from "./createBuilder.mjs";
2
- import { logger } from "@rsbuild/core";
3
- import { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, isHtmlDisabled } from "./shared/utils.mjs";
4
- export { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, createRspackBuilder as createBuilder, isHtmlDisabled, logger, parseConfig as parseRspackConfig };
1
+ export { createRspackBuilder as createBuilder, parseConfig as parseRspackConfig } from "./createBuilder.mjs";
2
+ export { logger } from "@rsbuild/core";
3
+ export { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, isHtmlDisabled } from "./shared/utils.mjs";
@@ -4,4 +4,4 @@ function rscServerEntryLoader(source) {
4
4
  if (hasServerEntryDirective) return source;
5
5
  return `'use server-entry';\n${source}`;
6
6
  }
7
- export { rscServerEntryLoader as default };
7
+ export default rscServerEntryLoader;
@@ -1,2 +1,2 @@
1
1
  const rscEmptyModule = {};
2
- export { rscEmptyModule as default };
2
+ export default rscEmptyModule;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- import { createRspackBuilder, parseConfig } from "./createBuilder.mjs";
3
- import { logger } from "@rsbuild/core";
4
- import { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, isHtmlDisabled } from "./shared/utils.mjs";
5
- export { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, createRspackBuilder as createBuilder, isHtmlDisabled, logger, parseConfig as parseRspackConfig };
2
+ export { createRspackBuilder as createBuilder, parseConfig as parseRspackConfig } from "./createBuilder.mjs";
3
+ export { logger } from "@rsbuild/core";
4
+ export { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, isHtmlDisabled } from "./shared/utils.mjs";
@@ -1,8 +1,8 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
2
  const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
+ import path from "path";
3
4
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
5
  import { dirname as __rspack_dirname } from "node:path";
5
- import path from "path";
6
6
  var rscConfig_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';
@@ -5,4 +5,4 @@ function rscServerEntryLoader(source) {
5
5
  if (hasServerEntryDirective) return source;
6
6
  return `'use server-entry';\n${source}`;
7
7
  }
8
- export { rscServerEntryLoader as default };
8
+ export default rscServerEntryLoader;
@@ -1,8 +1,8 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
2
  const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
+ import path from "path";
3
4
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
5
  import { dirname as __rspack_dirname } from "node:path";
5
- import path from "path";
6
6
  var rscClientBrowserFallback_dirname = __rspack_dirname(__rspack_fileURLToPath(import.meta.url));
7
7
  function rscClientBrowserFallbackPlugin() {
8
8
  return {
@@ -1,3 +1,3 @@
1
1
  import "node:module";
2
2
  const rscEmptyModule = {};
3
- export { rscEmptyModule as default };
3
+ export default rscEmptyModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/builder",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "A builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@rsbuild/core": "2.0.0-beta.4",
29
+ "@rsbuild/core": "2.0.0-rc.0",
30
30
  "@rsbuild/plugin-assets-retry": "1.5.1",
31
31
  "@rsbuild/plugin-check-syntax": "1.6.1",
32
32
  "@rsbuild/plugin-css-minimizer": "1.1.1",
@@ -57,18 +57,18 @@
57
57
  "postcss-page-break": "3.0.4",
58
58
  "rspack-manifest-plugin": "5.2.1",
59
59
  "ts-deepmerge": "7.0.3",
60
- "@modern-js/utils": "3.1.0"
60
+ "@modern-js/utils": "3.1.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@rslib/core": "0.19.6",
63
+ "@rslib/core": "0.20.3",
64
64
  "@types/html-minifier-terser": "^7.0.2",
65
65
  "@types/lodash": "^4.17.24",
66
66
  "react": "^19.2.4",
67
- "terser": "^5.46.0",
67
+ "terser": "^5.46.1",
68
68
  "typescript": "^5.3.0",
69
69
  "@modern-js/rslib": "2.68.10",
70
- "@modern-js/types": "3.1.0",
71
- "@scripts/rstest-config": "2.66.0"
70
+ "@scripts/rstest-config": "2.66.0",
71
+ "@modern-js/types": "3.1.2"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public",