@modern-js/uni-builder 2.48.0 → 2.48.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.
@@ -39,7 +39,7 @@ const pluginBabelPost = () => ({
39
39
  api.modifyBundlerChain({
40
40
  handler: async (chain, { CHAIN_ID }) => {
41
41
  if (chain.module.rules.get(CHAIN_ID.RULE.JS)) {
42
- const babelLoaderOptions = chain.module.rule(CHAIN_ID.RULE.JS).use(CHAIN_ID.USE.BABEL).get("options");
42
+ const { cacheIdentifier, ...babelLoaderOptions } = chain.module.rule(CHAIN_ID.RULE.JS).use(CHAIN_ID.USE.BABEL).get("options");
43
43
  const config = api.getNormalizedConfig();
44
44
  if (babelLoaderOptions && (0, import_isEqual.default)((0, import_plugin_babel.getDefaultBabelOptions)(config, api.context), babelLoaderOptions)) {
45
45
  chain.module.rule(CHAIN_ID.RULE.JS).uses.delete(CHAIN_ID.USE.BABEL);
@@ -1,12 +1,15 @@
1
- import { StartDevServerOptions as RsbuildStartDevServerOptions, StartServerResult, RsbuildInstance } from '@rsbuild/shared';
1
+ import { StartDevServerOptions as RsbuildStartDevServerOptions, StartServerResult, RsbuildInstance, DevConfig, ServerConfig } from '@rsbuild/shared';
2
2
  import type { Server, ModernDevServerOptionsNew } from '@modern-js/server';
3
- import { UniBuilderConfig } from '../types';
3
+ import type { UniBuilderConfig, ToolsDevServerConfig } from '../types';
4
4
  type ServerOptions = Partial<Omit<ModernDevServerOptionsNew, 'config'>> & {
5
5
  config?: Partial<ModernDevServerOptionsNew['config']>;
6
6
  };
7
+ export declare const transformToRsbuildServerOptions: (dev: NonNullable<UniBuilderConfig['dev']>, devServer: ToolsDevServerConfig) => {
8
+ dev: DevConfig;
9
+ server: ServerConfig;
10
+ };
7
11
  export type StartDevServerOptions = Omit<RsbuildStartDevServerOptions, 'printURLs'> & {
8
12
  apiOnly?: boolean;
9
- defaultPort?: number;
10
13
  serverOptions?: ServerOptions;
11
14
  };
12
15
  export type UniBuilderStartServerResult = Omit<StartServerResult, 'server'> & {
@@ -28,7 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var devServer_exports = {};
30
30
  __export(devServer_exports, {
31
- startDevServer: () => startDevServer
31
+ startDevServer: () => startDevServer,
32
+ transformToRsbuildServerOptions: () => transformToRsbuildServerOptions
32
33
  });
33
34
  module.exports = __toCommonJS(devServer_exports);
34
35
  var import_shared = require("@rsbuild/shared");
@@ -52,55 +53,109 @@ const getServerOptions = (builderConfig) => {
52
53
  bff: {}
53
54
  };
54
55
  };
55
- const getDevServerOptions = async ({ builderConfig, serverOptions, port }) => {
56
- var _builderConfig_dev, _builderConfig_tools;
57
- const defaultDevConfig = (0, import_shared.deepmerge)(
58
- {
59
- watch: true,
60
- port,
61
- https: (_builderConfig_dev = builderConfig.dev) === null || _builderConfig_dev === void 0 ? void 0 : _builderConfig_dev.https
56
+ const transformToRsbuildServerOptions = (dev, devServer) => {
57
+ var _newDevServerConfig_devMiddleware, _newDevServerConfig_before, _newDevServerConfig_after;
58
+ const { port, host, https, ...devConfig } = dev;
59
+ var _dev_hmr;
60
+ const newDevServerConfig = (0, import_shared.mergeChainedOptions)({
61
+ defaults: {
62
+ devMiddleware: {
63
+ writeToDisk: (file) => !file.includes(".hot-update.")
64
+ },
65
+ hot: (_dev_hmr = dev === null || dev === void 0 ? void 0 : dev.hmr) !== null && _dev_hmr !== void 0 ? _dev_hmr : true,
66
+ liveReload: true,
67
+ client: {
68
+ path: "/webpack-hmr"
69
+ }
62
70
  },
63
- // merge devServerOptions from serverOptions
64
- serverOptions.dev || {}
65
- );
66
- const devConfig = (0, import_shared.mergeChainedOptions)({
67
- defaults: defaultDevConfig,
68
- options: (_builderConfig_tools = builderConfig.tools) === null || _builderConfig_tools === void 0 ? void 0 : _builderConfig_tools.devServer,
71
+ options: devServer,
69
72
  mergeFn: import_shared.deepmerge
70
73
  });
74
+ const rsbuildDev = {
75
+ ...devConfig,
76
+ writeToDisk: (_newDevServerConfig_devMiddleware = newDevServerConfig.devMiddleware) === null || _newDevServerConfig_devMiddleware === void 0 ? void 0 : _newDevServerConfig_devMiddleware.writeToDisk,
77
+ hmr: newDevServerConfig.hot,
78
+ client: newDevServerConfig.client,
79
+ liveReload: newDevServerConfig.liveReload
80
+ };
81
+ if (dev.progressBar === void 0) {
82
+ rsbuildDev.progressBar = true;
83
+ }
84
+ if (((_newDevServerConfig_before = newDevServerConfig.before) === null || _newDevServerConfig_before === void 0 ? void 0 : _newDevServerConfig_before.length) || ((_newDevServerConfig_after = newDevServerConfig.after) === null || _newDevServerConfig_after === void 0 ? void 0 : _newDevServerConfig_after.length)) {
85
+ rsbuildDev.setupMiddlewares = [
86
+ ...newDevServerConfig.setupMiddlewares || [],
87
+ (middlewares) => {
88
+ middlewares.unshift(...newDevServerConfig.before || []);
89
+ middlewares.push(...newDevServerConfig.after || []);
90
+ }
91
+ ];
92
+ } else if (newDevServerConfig.setupMiddlewares) {
93
+ rsbuildDev.setupMiddlewares = newDevServerConfig.setupMiddlewares;
94
+ }
95
+ const server = (0, import_shared.isProd)() ? {
96
+ publicDir: false,
97
+ htmlFallback: false
98
+ } : {
99
+ publicDir: false,
100
+ htmlFallback: false,
101
+ compress: newDevServerConfig.compress,
102
+ headers: newDevServerConfig.headers,
103
+ historyApiFallback: newDevServerConfig.historyApiFallback,
104
+ proxy: newDevServerConfig.proxy,
105
+ port,
106
+ host,
107
+ https: https ? https : void 0
108
+ };
109
+ return {
110
+ dev: rsbuildDev,
111
+ server
112
+ };
113
+ };
114
+ const getDevServerOptions = async ({ builderConfig, serverOptions }) => {
71
115
  const defaultConfig = getServerOptions(builderConfig);
72
116
  const config = serverOptions.config ? (0, import_shared.deepmerge)(defaultConfig, serverOptions.config) : defaultConfig;
73
117
  return {
74
- config,
75
- devConfig
118
+ config
76
119
  };
77
120
  };
78
121
  async function startDevServer(rsbuild, options = {}, builderConfig) {
122
+ var _serverOptions_dev, _serverOptions_dev1, _rsbuildConfig_server, _rsbuildConfig_dev;
79
123
  (0, import_shared.debug)("create dev server");
80
124
  const { ServerForRsbuild } = await Promise.resolve().then(() => __toESM(require("@modern-js/server")));
81
125
  const rsbuildServer = await rsbuild.getServerAPIs(options);
82
126
  const { serverOptions = {} } = options;
83
- const { config, devConfig } = await getDevServerOptions({
127
+ const { config } = await getDevServerOptions({
84
128
  builderConfig,
85
- serverOptions,
86
- port: rsbuildServer.config.port
129
+ serverOptions
87
130
  });
88
131
  const compileMiddlewareAPI = options.apiOnly ? void 0 : await rsbuildServer.startCompile();
132
+ const rsbuildConfig = rsbuild.getRsbuildConfig();
133
+ var _serverOptions_dev_https;
134
+ const https = (_serverOptions_dev_https = (_serverOptions_dev = serverOptions.dev) === null || _serverOptions_dev === void 0 ? void 0 : _serverOptions_dev.https) !== null && _serverOptions_dev_https !== void 0 ? _serverOptions_dev_https : rsbuildServer.config.https;
135
+ var _serverOptions_dev_watch;
89
136
  const server = new ServerForRsbuild({
90
137
  pwd: rsbuild.context.rootPath,
91
138
  ...serverOptions,
92
139
  rsbuild,
93
140
  getMiddlewares: (config2) => rsbuildServer.getMiddlewares({
94
141
  compileMiddlewareAPI,
142
+ // TODO: To be removed. should update all rsbuild config in parseCommonConfig stage
95
143
  overrides: config2
96
144
  }),
97
- dev: devConfig,
145
+ dev: {
146
+ watch: (_serverOptions_dev_watch = (_serverOptions_dev1 = serverOptions.dev) === null || _serverOptions_dev1 === void 0 ? void 0 : _serverOptions_dev1.watch) !== null && _serverOptions_dev_watch !== void 0 ? _serverOptions_dev_watch : true,
147
+ compress: (_rsbuildConfig_server = rsbuildConfig.server) === null || _rsbuildConfig_server === void 0 ? void 0 : _rsbuildConfig_server.compress,
148
+ https,
149
+ devMiddleware: {
150
+ writeToDisk: (_rsbuildConfig_dev = rsbuildConfig.dev) === null || _rsbuildConfig_dev === void 0 ? void 0 : _rsbuildConfig_dev.writeToDisk
151
+ }
152
+ },
98
153
  config
99
154
  });
100
155
  const { config: { port, host } } = rsbuildServer;
101
156
  (0, import_shared.debug)("create dev server done");
102
157
  await rsbuildServer.beforeStart();
103
- const protocol = devConfig.https ? "https" : "http";
158
+ const protocol = https ? "https" : "http";
104
159
  const urls = (0, import_shared.getAddressUrls)({
105
160
  protocol,
106
161
  port,
@@ -136,5 +191,6 @@ async function startDevServer(rsbuild, options = {}, builderConfig) {
136
191
  }
137
192
  // Annotate the CommonJS export names for ESM import in node:
138
193
  0 && (module.exports = {
139
- startDevServer
194
+ startDevServer,
195
+ transformToRsbuildServerOptions
140
196
  });
@@ -47,6 +47,7 @@ var import_devtools = require("./plugins/devtools");
47
47
  var import_emitRouteFile = require("./plugins/emitRouteFile");
48
48
  var import_antd = require("./plugins/antd");
49
49
  var import_arco = require("./plugins/arco");
50
+ var import_devServer = require("./devServer");
50
51
  const GLOBAL_CSS_REGEX = /\.global\.\w+$/;
51
52
  const isLooseCssModules = (path) => {
52
53
  if (import_shared.NODE_MODULES_REGEX.test(path)) {
@@ -104,10 +105,10 @@ const isUseCssSourceMap = (disableSourceMap = {}) => {
104
105
  return !disableSourceMap.css;
105
106
  };
106
107
  async function parseCommonConfig(uniBuilderConfig, options) {
107
- var _newDevServerConfig_devMiddleware, _uniBuilderConfig_output, _uniBuilderConfig_tools;
108
+ var _uniBuilderConfig_output, _uniBuilderConfig_tools;
108
109
  var _output, _output_distPath, _output_distPath1, _output1, _extraConfig, _html, _extraConfig1;
109
110
  const { cwd, frameworkConfigPath, entry, target } = options;
110
- const { plugins: [...plugins] = [], performance: { ...performanceConfig } = {}, output: { disableFilenameHash, enableLatestDecorators, cssModuleLocalIdentName, enableInlineScripts, disableCssExtract, enableInlineStyles, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetFallback, disableSourceMap, convertToRem, ...outputConfig } = {}, html: { disableHtmlFolder, metaByEntries, titleByEntries, faviconByEntries, injectByEntries, templateByEntries, templateParametersByEntries, ...htmlConfig } = {}, source: { alias, globalVars, resolveMainFields, resolveExtensionPrefix, ...sourceConfig } = {}, dev: { port, host, https, ...devConfig } = {}, security: { checkSyntax, sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, ...toolsConfig } = {} } = uniBuilderConfig;
111
+ const { plugins: [...plugins] = [], performance: { ...performanceConfig } = {}, output: { disableFilenameHash, enableLatestDecorators, cssModuleLocalIdentName, enableInlineScripts, disableCssExtract, enableInlineStyles, disableCssModuleExtension, disableTsChecker, disableSvgr, svgDefaultExport, assetsRetry, enableAssetFallback, disableSourceMap, convertToRem, ...outputConfig } = {}, html: { disableHtmlFolder, metaByEntries, titleByEntries, faviconByEntries, injectByEntries, templateByEntries, templateParametersByEntries, ...htmlConfig } = {}, source: { alias, globalVars, resolveMainFields, resolveExtensionPrefix, ...sourceConfig } = {}, dev, security: { checkSyntax, sri, ...securityConfig } = {}, tools: { devServer, tsChecker, minifyCss, ...toolsConfig } = {} } = uniBuilderConfig;
111
112
  const rsbuildConfig = {
112
113
  plugins,
113
114
  output: outputConfig,
@@ -118,10 +119,9 @@ async function parseCommonConfig(uniBuilderConfig, options) {
118
119
  performance: performanceConfig,
119
120
  html: htmlConfig,
120
121
  tools: toolsConfig,
121
- dev: devConfig,
122
122
  security: securityConfig
123
123
  };
124
- const { dev = {}, html = {}, output = {}, source = {} } = rsbuildConfig;
124
+ const { html = {}, output = {}, source = {} } = rsbuildConfig;
125
125
  if (enableLatestDecorators) {
126
126
  source.decorators = {
127
127
  version: "2022-03"
@@ -193,7 +193,10 @@ async function parseCommonConfig(uniBuilderConfig, options) {
193
193
  extraConfig.html.template = ({ entryName }) => templateByEntries[entryName];
194
194
  }
195
195
  if (templateParametersByEntries) {
196
- extraConfig.html.templateParameters = (_, { entryName }) => templateParametersByEntries[entryName];
196
+ extraConfig.html.templateParameters = (defaultValue, { entryName }) => ({
197
+ ...defaultValue,
198
+ ...templateParametersByEntries[entryName] || {}
199
+ });
197
200
  }
198
201
  var _tools;
199
202
  (_tools = (_extraConfig1 = extraConfig).tools) !== null && _tools !== void 0 ? _tools : _extraConfig1.tools = {};
@@ -210,38 +213,9 @@ async function parseCommonConfig(uniBuilderConfig, options) {
210
213
  };
211
214
  }
212
215
  };
213
- if (dev.progressBar === void 0) {
214
- dev.progressBar = true;
215
- }
216
- var _dev_hmr;
217
- const newDevServerConfig = (0, import_shared.mergeChainedOptions)({
218
- defaults: {
219
- devMiddleware: {
220
- writeToDisk: (file) => !file.includes(".hot-update.")
221
- },
222
- hot: (_dev_hmr = dev === null || dev === void 0 ? void 0 : dev.hmr) !== null && _dev_hmr !== void 0 ? _dev_hmr : true,
223
- liveReload: true,
224
- client: {
225
- path: "/webpack-hmr"
226
- }
227
- },
228
- options: devServer,
229
- mergeFn: import_shared.deepmerge
230
- });
231
- dev.writeToDisk = (_newDevServerConfig_devMiddleware = newDevServerConfig.devMiddleware) === null || _newDevServerConfig_devMiddleware === void 0 ? void 0 : _newDevServerConfig_devMiddleware.writeToDisk;
232
- dev.hmr = newDevServerConfig.hot;
233
- dev.client = newDevServerConfig.client;
234
- dev.liveReload = newDevServerConfig.liveReload;
235
- const server = (0, import_shared.isProd)() ? {
236
- publicDir: false
237
- } : {
238
- publicDir: false,
239
- port,
240
- host,
241
- https: https ? https : void 0
242
- };
216
+ const { dev: RsbuildDev, server } = (0, import_devServer.transformToRsbuildServerOptions)(dev || {}, devServer || {});
243
217
  rsbuildConfig.server = removeUndefinedKey(server);
244
- rsbuildConfig.dev = removeUndefinedKey(dev);
218
+ rsbuildConfig.dev = removeUndefinedKey(RsbuildDev);
245
219
  rsbuildConfig.html = html;
246
220
  rsbuildConfig.output = output;
247
221
  if (entry) {
@@ -50,13 +50,17 @@ const pluginPostcssLegacy = (webBrowserslist) => ({
50
50
  ]
51
51
  }) : false
52
52
  ].filter(Boolean);
53
- return mergeRsbuildConfig(config, {
54
- tools: {
55
- postcss: (opts) => {
56
- opts.postcssOptions.plugins.push(...plugins);
53
+ return mergeRsbuildConfig(
54
+ {
55
+ tools: {
56
+ postcss: (opts) => {
57
+ opts.postcssOptions.plugins.push(...plugins);
58
+ }
57
59
  }
58
- }
59
- });
60
+ },
61
+ // user config has higher priority than builtin config
62
+ config
63
+ );
60
64
  });
61
65
  }
62
66
  });
@@ -61,8 +61,8 @@ const pluginSplitChunks = () => ({
61
61
  // rspack chunks type mismatch with webpack
62
62
  // @ts-expect-error
63
63
  cacheGroups: {
64
- ...currentConfig.cacheGroups,
65
- ...(0, import_shared.createCacheGroups)(groups)
64
+ ...(0, import_shared.createCacheGroups)(groups),
65
+ ...currentConfig.cacheGroups
66
66
  }
67
67
  });
68
68
  });
package/dist/types.d.ts CHANGED
@@ -40,25 +40,26 @@ export type DisableSourceMapOption = boolean | {
40
40
  js?: boolean;
41
41
  css?: boolean;
42
42
  };
43
+ export type ToolsDevServerConfig = ChainedConfig<{
44
+ before?: RequestHandler[];
45
+ after?: RequestHandler[];
46
+ client?: DevConfig['client'];
47
+ compress?: ServerConfig['compress'];
48
+ devMiddleware?: {
49
+ writeToDisk?: DevConfig['writeToDisk'];
50
+ };
51
+ liveReload?: boolean;
52
+ headers?: ServerConfig['headers'];
53
+ historyApiFallback?: ServerConfig['historyApiFallback'];
54
+ hot?: boolean;
55
+ https?: DevServerHttpsOptions;
56
+ setupMiddlewares?: DevConfig['setupMiddlewares'];
57
+ proxy?: ServerConfig['proxy'];
58
+ }>;
43
59
  export type UniBuilderExtraConfig = {
44
60
  tools?: {
45
61
  styledComponents?: false | PluginStyledComponentsOptions;
46
- devServer?: ChainedConfig<{
47
- before?: RequestHandler[];
48
- after?: RequestHandler[];
49
- client?: DevConfig['client'];
50
- compress?: ServerConfig['compress'];
51
- devMiddleware?: {
52
- writeToDisk?: DevConfig['writeToDisk'];
53
- };
54
- liveReload?: boolean;
55
- headers?: ServerConfig['headers'];
56
- historyApiFallback?: ServerConfig['historyApiFallback'];
57
- hot?: boolean;
58
- https?: DevServerHttpsOptions;
59
- setupMiddlewares?: DevConfig['setupMiddlewares'];
60
- proxy?: ServerConfig['proxy'];
61
- }>;
62
+ devServer?: ToolsDevServerConfig;
62
63
  /**
63
64
  * Configure the [Pug](https://pugjs.org/) template engine.
64
65
  */
@@ -21,7 +21,6 @@ __export(ModuleScopePlugin_exports, {
21
21
  ModuleScopePlugin: () => ModuleScopePlugin
22
22
  });
23
23
  module.exports = __toCommonJS(ModuleScopePlugin_exports);
24
- var import_define_property = require("@swc/helpers/_/_define_property");
25
24
  var import_path = require("path");
26
25
  var import_shared = require("@rsbuild/shared");
27
26
  class ModuleScopePlugin {
@@ -78,12 +77,6 @@ class ModuleScopePlugin {
78
77
  });
79
78
  }
80
79
  constructor({ scopes, allowedFiles = [] }) {
81
- (0, import_define_property._)(this, "scopes", void 0);
82
- (0, import_define_property._)(this, "allowedFiles", void 0);
83
- (0, import_define_property._)(this, "allowedDirs", void 0);
84
- (0, import_define_property._)(this, "allowedPatterns", void 0);
85
- (0, import_define_property._)(this, "relativeAllowedDirs", void 0);
86
- (0, import_define_property._)(this, "cache", void 0);
87
80
  this.scopes = scopes;
88
81
  this.allowedFiles = new Set(allowedFiles);
89
82
  this.allowedDirs = scopes.filter(import_shared.isString);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/uni-builder",
3
- "version": "2.48.0",
3
+ "version": "2.48.2",
4
4
  "description": "Unified builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,23 +26,23 @@
26
26
  "@babel/preset-react": "^7.22.15",
27
27
  "@babel/types": "^7.23.0",
28
28
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
29
- "@rsbuild/babel-preset": "0.4.8",
30
- "@rsbuild/core": "0.4.8",
31
- "@rsbuild/plugin-assets-retry": "0.4.8",
32
- "@rsbuild/plugin-babel": "0.4.8",
33
- "@rsbuild/plugin-check-syntax": "0.4.8",
34
- "@rsbuild/plugin-css-minimizer": "0.4.8",
35
- "@rsbuild/plugin-pug": "0.4.8",
36
- "@rsbuild/plugin-react": "0.4.8",
37
- "@rsbuild/plugin-rem": "0.4.8",
38
- "@rsbuild/plugin-source-build": "0.4.8",
39
- "@rsbuild/plugin-styled-components": "0.4.8",
40
- "@rsbuild/plugin-svgr": "0.4.8",
41
- "@rsbuild/plugin-type-check": "0.4.8",
42
- "@rsbuild/plugin-toml": "0.4.8",
43
- "@rsbuild/plugin-yaml": "0.4.8",
44
- "@rsbuild/shared": "0.4.8",
45
- "@rsbuild/webpack": "0.4.8",
29
+ "@rsbuild/babel-preset": "0.4.15",
30
+ "@rsbuild/core": "0.4.15",
31
+ "@rsbuild/plugin-assets-retry": "0.4.15",
32
+ "@rsbuild/plugin-babel": "0.4.15",
33
+ "@rsbuild/plugin-check-syntax": "0.4.15",
34
+ "@rsbuild/plugin-css-minimizer": "0.4.15",
35
+ "@rsbuild/plugin-pug": "0.4.15",
36
+ "@rsbuild/plugin-react": "0.4.15",
37
+ "@rsbuild/plugin-rem": "0.4.15",
38
+ "@rsbuild/plugin-source-build": "0.4.15",
39
+ "@rsbuild/plugin-styled-components": "0.4.15",
40
+ "@rsbuild/plugin-svgr": "0.4.15",
41
+ "@rsbuild/plugin-type-check": "0.4.15",
42
+ "@rsbuild/plugin-toml": "0.4.15",
43
+ "@rsbuild/plugin-yaml": "0.4.15",
44
+ "@rsbuild/shared": "0.4.15",
45
+ "@rsbuild/webpack": "0.4.15",
46
46
  "@swc/helpers": "0.5.3",
47
47
  "babel-loader": "9.1.3",
48
48
  "babel-plugin-import": "1.13.5",
@@ -52,6 +52,7 @@
52
52
  "glob": "^9.3.5",
53
53
  "html-webpack-plugin": "5.5.3",
54
54
  "lodash": "^4.17.21",
55
+ "postcss": "^8.4.35",
55
56
  "postcss-custom-properties": "13.1.5",
56
57
  "postcss-flexbugs-fixes": "5.0.2",
57
58
  "postcss-font-variant": "5.0.0",
@@ -65,18 +66,18 @@
65
66
  "webpack": "^5.89.0",
66
67
  "webpack-manifest-plugin": "5.0.0",
67
68
  "webpack-subresource-integrity": "5.1.0",
68
- "@modern-js/utils": "2.48.0",
69
- "@modern-js/prod-server": "2.48.0",
70
- "@modern-js/server": "2.48.0"
69
+ "@modern-js/utils": "2.48.2",
70
+ "@modern-js/server": "2.48.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@rsbuild/plugin-swc": "0.4.8",
73
+ "@rsbuild/plugin-swc": "0.4.15",
74
74
  "@types/lodash": "^4.14.202",
75
75
  "react": "^18.2.0",
76
76
  "react-dom": "^18.2.0",
77
77
  "typescript": "^5.3.0",
78
- "@scripts/build": "2.48.0",
79
- "@scripts/vitest-config": "2.48.0"
78
+ "@modern-js/prod-server": "2.48.2",
79
+ "@scripts/build": "2.48.2",
80
+ "@scripts/vitest-config": "2.48.2"
80
81
  },
81
82
  "publishConfig": {
82
83
  "access": "public",