@modern-js/uni-builder 2.69.3 → 2.69.5

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.
@@ -73,7 +73,7 @@ const pluginPostcss = (options = {}) => ({
73
73
  }
74
74
  const cssSupport = (0, import_getCssSupport.getCssSupport)(config.output.overrideBrowserslist);
75
75
  const enableExtractCSS = !((_config_output = config.output) === null || _config_output === void 0 ? void 0 : _config_output.injectStyles);
76
- const enableCssMinify = !enableExtractCSS && import_utils.isProd;
76
+ const enableCssMinify = !enableExtractCSS && (0, import_utils.isProd)();
77
77
  const cssnanoOptions = {
78
78
  preset: [
79
79
  "default",
@@ -1,2 +1,3 @@
1
1
  export { RscClientPlugin } from './plugins/rsc-client-plugin';
2
2
  export { RscServerPlugin } from './plugins/rsc-server-plugin';
3
+ export { rsbuildRscPlugin } from './plugins/rsbuild-rsc-plugin';
@@ -19,13 +19,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var rsc_exports = {};
20
20
  __export(rsc_exports, {
21
21
  RscClientPlugin: () => import_rsc_client_plugin.RscClientPlugin,
22
- RscServerPlugin: () => import_rsc_server_plugin.RscServerPlugin
22
+ RscServerPlugin: () => import_rsc_server_plugin.RscServerPlugin,
23
+ rsbuildRscPlugin: () => import_rsbuild_rsc_plugin.rsbuildRscPlugin
23
24
  });
24
25
  module.exports = __toCommonJS(rsc_exports);
25
26
  var import_rsc_client_plugin = require("./plugins/rsc-client-plugin");
26
27
  var import_rsc_server_plugin = require("./plugins/rsc-server-plugin");
28
+ var import_rsbuild_rsc_plugin = require("./plugins/rsbuild-rsc-plugin");
27
29
  // Annotate the CommonJS export names for ESM import in node:
28
30
  0 && (module.exports = {
29
31
  RscClientPlugin,
30
- RscServerPlugin
32
+ RscServerPlugin,
33
+ rsbuildRscPlugin
31
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.69.3",
3
+ "version": "2.69.5",
4
4
  "description": "Unified builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,6 +19,16 @@
19
19
  "default": "./dist/shared/rsc/index.js"
20
20
  }
21
21
  },
22
+ "typesVersions": {
23
+ "*": {
24
+ ".": [
25
+ "./dist/index.d.ts"
26
+ ],
27
+ "rsc": [
28
+ "./dist/shared/rsc/index.d.ts"
29
+ ]
30
+ }
31
+ },
22
32
  "main": "./dist/index.js",
23
33
  "types": "./dist/index.d.ts",
24
34
  "files": [
@@ -30,7 +40,7 @@
30
40
  "@babel/preset-react": "^7.22.15",
31
41
  "@babel/types": "^7.26.0",
32
42
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.16",
33
- "@rsbuild/core": "1.6.13",
43
+ "@rsbuild/core": "1.6.15",
34
44
  "@rsbuild/plugin-assets-retry": "1.5.0",
35
45
  "@rsbuild/plugin-babel": "1.0.6",
36
46
  "@rsbuild/plugin-check-syntax": "1.6.0",
@@ -42,7 +52,7 @@
42
52
  "@rsbuild/plugin-sass": "1.4.0",
43
53
  "@rsbuild/plugin-source-build": "1.0.3",
44
54
  "@rsbuild/plugin-styled-components": "1.5.0",
45
- "@rsbuild/plugin-svgr": "1.2.2",
55
+ "@rsbuild/plugin-svgr": "1.2.3",
46
56
  "@rsbuild/plugin-toml": "1.1.1",
47
57
  "@rsbuild/plugin-type-check": "1.3.2",
48
58
  "@rsbuild/plugin-typed-css-modules": "1.2.0",
@@ -80,9 +90,9 @@
80
90
  "ts-loader": "9.4.4",
81
91
  "webpack": "^5.103.0",
82
92
  "webpack-subresource-integrity": "5.1.0",
83
- "@modern-js/babel-preset": "2.69.3",
84
- "@modern-js/flight-server-transform-plugin": "2.69.3",
85
- "@modern-js/utils": "2.69.3"
93
+ "@modern-js/babel-preset": "2.69.5",
94
+ "@modern-js/flight-server-transform-plugin": "2.69.5",
95
+ "@modern-js/utils": "2.69.5"
86
96
  },
87
97
  "devDependencies": {
88
98
  "@rsbuild/plugin-webpack-swc": "1.1.2",
@@ -93,7 +103,7 @@
93
103
  "react-dom": "^18.2.0",
94
104
  "terser": "^5.31.1",
95
105
  "typescript": "^5.3.0",
96
- "@modern-js/types": "2.69.3",
106
+ "@modern-js/types": "2.69.5",
97
107
  "@scripts/build": "2.66.0",
98
108
  "@scripts/vitest-config": "2.66.0"
99
109
  },