@rsbuild/core 1.7.2 → 2.0.0-alpha.1

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.
Files changed (123) hide show
  1. package/compiled/css-loader/index.js +2 -2
  2. package/compiled/html-rspack-plugin/index.js +14 -14
  3. package/compiled/http-proxy-middleware/index.d.ts +2 -2
  4. package/compiled/postcss/index.js +1 -1
  5. package/compiled/postcss-loader/index.js +6 -6
  6. package/compiled/rspack-chain/package.json +1 -1
  7. package/compiled/rspack-chain/types/index.d.ts +8 -59
  8. package/compiled/ws/index.js +59 -54
  9. package/compiled/ws/package.json +1 -1
  10. package/dist/131.js +1122 -1241
  11. package/dist/31.js +336 -0
  12. package/dist/710.js +445 -0
  13. package/dist/743.js +7 -0
  14. package/dist/{136.mjs → 88.js} +11 -13
  15. package/dist/client/hmr.js +0 -1
  16. package/dist/client/overlay.js +32 -21
  17. package/dist/connect.js +581 -0
  18. package/dist/connect.js.LICENSE.txt +54 -0
  19. package/dist/cors.js +188 -0
  20. package/dist/cors.js.LICENSE.txt +11 -0
  21. package/dist/launch-editor-middleware.js +439 -0
  22. package/dist/manifest-plugin.js +172 -0
  23. package/dist/memfs.js +3644 -0
  24. package/dist/{0~open.js → open.js} +21 -13
  25. package/dist/{0~range-parser.js → range-parser.js} +1 -1
  26. package/dist/remapping.js +196 -0
  27. package/dist/sirv.js +122 -0
  28. package/dist/tinyglobby.js +1463 -0
  29. package/dist/transformLoader.mjs +1 -1
  30. package/dist/transformRawLoader.mjs +1 -1
  31. package/dist-types/{provider/build.d.ts → build.d.ts} +2 -2
  32. package/dist-types/cli/commands.d.ts +1 -1
  33. package/dist-types/configChain.d.ts +2 -11
  34. package/dist-types/constants.d.ts +2 -3
  35. package/dist-types/{provider/createCompiler.d.ts → createCompiler.d.ts} +1 -1
  36. package/dist-types/defaultConfig.d.ts +1 -1
  37. package/dist-types/helpers/index.d.ts +1 -1
  38. package/dist-types/helpers/url.d.ts +0 -1
  39. package/dist-types/helpers/vendors.d.ts +0 -13
  40. package/dist-types/hooks.d.ts +3 -5
  41. package/dist-types/index.d.ts +1 -1
  42. package/dist-types/{provider/initConfigs.d.ts → initConfigs.d.ts} +1 -1
  43. package/dist-types/inspectConfig.d.ts +5 -33
  44. package/dist-types/pluginHelper.d.ts +1 -1
  45. package/dist-types/plugins/css.d.ts +1 -1
  46. package/dist-types/plugins/inlineChunk.d.ts +1 -1
  47. package/dist-types/plugins/minimize.d.ts +2 -2
  48. package/dist-types/{provider/rspackConfig.d.ts → rspackConfig.d.ts} +1 -1
  49. package/dist-types/server/assets-middleware/setupOutputFileSystem.d.ts +1 -1
  50. package/dist-types/server/browserLogs.d.ts +1 -1
  51. package/dist-types/server/devMiddlewares.d.ts +1 -1
  52. package/dist-types/server/devServer.d.ts +1 -1
  53. package/dist-types/server/gzipMiddleware.d.ts +1 -1
  54. package/dist-types/server/helper.d.ts +3 -2
  55. package/dist-types/server/proxy.d.ts +1 -1
  56. package/dist-types/server/socketServer.d.ts +1 -1
  57. package/dist-types/types/config.d.ts +18 -70
  58. package/dist-types/types/context.d.ts +3 -2
  59. package/dist-types/types/hooks.d.ts +9 -9
  60. package/dist-types/types/plugin.d.ts +3 -40
  61. package/dist-types/types/rsbuild.d.ts +6 -31
  62. package/dist-types/types/rspack.d.ts +1 -7
  63. package/dist-types/types/thirdParty.d.ts +1 -4
  64. package/package.json +17 -22
  65. package/compiled/@jridgewell/remapping/index.d.ts +0 -1
  66. package/compiled/@jridgewell/remapping/index.js +0 -1222
  67. package/compiled/@jridgewell/remapping/license +0 -19
  68. package/compiled/@jridgewell/remapping/package.json +0 -1
  69. package/compiled/@jridgewell/trace-mapping/index.d.ts +0 -194
  70. package/compiled/@jridgewell/trace-mapping/index.js +0 -1408
  71. package/compiled/@jridgewell/trace-mapping/license +0 -19
  72. package/compiled/@jridgewell/trace-mapping/package.json +0 -1
  73. package/compiled/connect/index.d.ts +0 -90
  74. package/compiled/connect/index.js +0 -1240
  75. package/compiled/connect/license +0 -25
  76. package/compiled/connect/package.json +0 -1
  77. package/compiled/cors/index.d.ts +0 -56
  78. package/compiled/cors/index.js +0 -371
  79. package/compiled/cors/license +0 -22
  80. package/compiled/cors/package.json +0 -1
  81. package/compiled/launch-editor-middleware/index.d.ts +0 -1
  82. package/compiled/launch-editor-middleware/index.js +0 -719
  83. package/compiled/launch-editor-middleware/license +0 -21
  84. package/compiled/launch-editor-middleware/package.json +0 -1
  85. package/compiled/memfs/index.d.ts +0 -1462
  86. package/compiled/memfs/index.js +0 -1
  87. package/compiled/memfs/license +0 -201
  88. package/compiled/memfs/package.json +0 -1
  89. package/compiled/mrmime/index.d.ts +0 -4
  90. package/compiled/mrmime/index.js +0 -456
  91. package/compiled/mrmime/package.json +0 -1
  92. package/compiled/picocolors/index.d.ts +0 -55
  93. package/compiled/picocolors/index.js +0 -108
  94. package/compiled/picocolors/license +0 -15
  95. package/compiled/picocolors/package.json +0 -1
  96. package/compiled/rspack-manifest-plugin/index.d.ts +0 -48
  97. package/compiled/rspack-manifest-plugin/index.js +0 -409
  98. package/compiled/rspack-manifest-plugin/license +0 -21
  99. package/compiled/rspack-manifest-plugin/package.json +0 -1
  100. package/compiled/sirv/index.d.ts +0 -1
  101. package/compiled/sirv/index.js +0 -274
  102. package/compiled/sirv/package.json +0 -1
  103. package/compiled/tinyglobby/index.d.ts +0 -46
  104. package/compiled/tinyglobby/index.js +0 -2664
  105. package/compiled/tinyglobby/license +0 -21
  106. package/compiled/tinyglobby/package.json +0 -1
  107. package/compiled/webpack-bundle-analyzer/index.d.ts +0 -160
  108. package/compiled/webpack-bundle-analyzer/index.js +0 -23
  109. package/compiled/webpack-bundle-analyzer/license +0 -20
  110. package/compiled/webpack-bundle-analyzer/package.json +0 -1
  111. package/compiled/webpack-bundle-analyzer/public/viewer.js +0 -16
  112. package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +0 -10
  113. package/dist/2~open.cjs +0 -436
  114. package/dist/2~range-parser.cjs +0 -52
  115. package/dist/2~range-parser.cjs.LICENSE.txt +0 -6
  116. package/dist/index.cjs +0 -9456
  117. package/dist/index.cjs.LICENSE.txt +0 -26
  118. package/dist-types/plugins/bundleAnalyzer.d.ts +0 -2
  119. package/dist-types/plugins/moment.d.ts +0 -2
  120. package/dist-types/plugins/performance.d.ts +0 -5
  121. package/dist-types/provider/helpers.d.ts +0 -12
  122. package/dist-types/provider/provider.d.ts +0 -2
  123. /package/dist/{0~range-parser.js.LICENSE.txt → range-parser.js.LICENSE.txt} +0 -0
@@ -5,30 +5,30 @@ import type { RspackChain } from '../types';
5
5
  import type { EnvironmentConfig, HtmlBasicTag, MergedEnvironmentConfig, NormalizedEnvironmentConfig, RsbuildConfig } from './config';
6
6
  import type { RsbuildEntry, RsbuildTarget } from './rsbuild';
7
7
  import type { Rspack } from './rspack';
8
- import type { HtmlRspackPlugin, WebpackConfig } from './thirdParty';
8
+ import type { HtmlRspackPlugin } from './thirdParty';
9
9
  import type { MaybePromise } from './utils';
10
10
  type CompileCommonParams = {
11
11
  isFirstCompile: boolean;
12
12
  isWatch: boolean;
13
13
  };
14
- export type OnBeforeEnvironmentCompileFn<B = 'rspack'> = (params: CompileCommonParams & {
14
+ export type OnBeforeEnvironmentCompileFn = (params: CompileCommonParams & {
15
15
  environment: EnvironmentContext;
16
- bundlerConfig?: B extends 'rspack' ? Rspack.Configuration : WebpackConfig;
16
+ bundlerConfig?: Rspack.Configuration;
17
17
  }) => MaybePromise<void>;
18
18
  export type OnCloseBuildFn = () => MaybePromise<void>;
19
- export type OnBeforeBuildFn<B = 'rspack'> = (params: CompileCommonParams & {
19
+ export type OnBeforeBuildFn = (params: CompileCommonParams & {
20
20
  /**
21
21
  * Context information for all environments.
22
22
  */
23
23
  environments: Record<string, EnvironmentContext>;
24
- bundlerConfigs?: B extends 'rspack' ? Rspack.Configuration[] : WebpackConfig[];
24
+ bundlerConfigs?: Rspack.Configuration[];
25
25
  }) => MaybePromise<void>;
26
- export type OnBeforeDevCompileFn<B = 'rspack'> = (params: CompileCommonParams & {
26
+ export type OnBeforeDevCompileFn = (params: CompileCommonParams & {
27
27
  /**
28
28
  * Context information for all environments.
29
29
  */
30
30
  environments: Record<string, EnvironmentContext>;
31
- bundlerConfigs?: B extends 'rspack' ? Rspack.Configuration[] : WebpackConfig[];
31
+ bundlerConfigs?: Rspack.Configuration[];
32
32
  }) => MaybePromise<void>;
33
33
  export type OnAfterEnvironmentCompileFn = (params: CompileCommonParams & {
34
34
  stats?: Rspack.Stats;
@@ -89,8 +89,8 @@ export type OnAfterStartProdServerFn = (params: {
89
89
  */
90
90
  environments: Record<string, EnvironmentContext>;
91
91
  }) => MaybePromise<void>;
92
- export type OnBeforeCreateCompilerFn<B = 'rspack'> = (params: {
93
- bundlerConfigs: B extends 'rspack' ? Rspack.Configuration[] : WebpackConfig[];
92
+ export type OnBeforeCreateCompilerFn = (params: {
93
+ bundlerConfigs: Rspack.Configuration[];
94
94
  /**
95
95
  * Context information for all environments.
96
96
  */
@@ -1,13 +1,9 @@
1
- /** @ts-ignore `webpack` type only exists when `@rsbuild/webpack` is installed */
2
- import type { RuleSetRule, Configuration as WebpackConfig, WebpackPluginInstance } from 'webpack';
3
- import type { ChainIdentifier } from '../configChain';
4
1
  import type { Logger } from '../logger';
5
- import type { ModifyRspackConfigUtils, NarrowedRspackConfig, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildConfig, RspackMerge } from './config';
2
+ import type { ModifyRspackConfigUtils, NarrowedRspackConfig, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildConfig } from './config';
6
3
  import type { RsbuildContext } from './context';
7
- import type { EnvironmentContext, ModifyBundlerChainFn, ModifyChainUtils, ModifyEnvironmentConfigFn, ModifyHTMLFn, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterDevCompileFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeDevCompileFn, OnBeforeEnvironmentCompileFn, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnCloseBuildFn, OnCloseDevServerFn, OnExitFn } from './hooks';
4
+ import type { EnvironmentContext, ModifyBundlerChainFn, ModifyEnvironmentConfigFn, ModifyHTMLFn, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterDevCompileFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeDevCompileFn, OnBeforeEnvironmentCompileFn, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnCloseBuildFn, OnCloseDevServerFn, OnExitFn } from './hooks';
8
5
  import type { AddPluginsOptions, RsbuildInstance, RsbuildTarget } from './rsbuild';
9
- import type { Rspack, RspackChain } from './rspack';
10
- import type { HtmlRspackPlugin } from './thirdParty';
6
+ import type { Rspack } from './rspack';
11
7
  import type { Falsy, MaybePromise } from './utils';
12
8
  type HookOrder = 'pre' | 'post' | 'default';
13
9
  export type HookDescriptor<T extends (...args: any[]) => any> = {
@@ -96,29 +92,6 @@ export type AsyncHook<Callback extends (...args: any[]) => T, T = any> = {
96
92
  callBatch: (...args: Parameters<Callback>) => Promise<Awaited<ReturnType<Callback>>[]>;
97
93
  };
98
94
  export type ModifyRspackConfigFn = (config: NarrowedRspackConfig, utils: ModifyRspackConfigUtils) => MaybePromise<Rspack.Configuration | void>;
99
- export type ModifyWebpackChainUtils = ModifyChainUtils & {
100
- /** @ts-ignore `webpack` type only exists when `@rsbuild/webpack` is installed */
101
- webpack: typeof import('webpack');
102
- CHAIN_ID: ChainIdentifier;
103
- /**
104
- * @deprecated Use target instead.
105
- */
106
- name: string;
107
- /**
108
- * @deprecated Use HtmlPlugin instead.
109
- */
110
- HtmlWebpackPlugin: typeof HtmlRspackPlugin;
111
- };
112
- export type ModifyWebpackConfigUtils = ModifyWebpackChainUtils & {
113
- addRules: (rules: RuleSetRule | RuleSetRule[]) => void;
114
- appendRules: (rules: RuleSetRule | RuleSetRule[]) => void;
115
- prependPlugins: (plugins: WebpackPluginInstance | WebpackPluginInstance[]) => void;
116
- appendPlugins: (plugins: WebpackPluginInstance | WebpackPluginInstance[]) => void;
117
- removePlugin: (pluginName: string) => void;
118
- mergeConfig: RspackMerge;
119
- };
120
- export type ModifyWebpackChainFn = (chain: RspackChain, utils: ModifyWebpackChainUtils) => Promise<void> | void;
121
- export type ModifyWebpackConfigFn = (config: WebpackConfig, utils: ModifyWebpackConfigUtils) => Promise<WebpackConfig | void> | WebpackConfig | void;
122
95
  export type PluginMeta = {
123
96
  environment?: AddPluginsOptions['environment'];
124
97
  instance: RsbuildPlugin;
@@ -469,16 +442,6 @@ export type RsbuildPluginAPI = Readonly<{
469
442
  * or return a new object to replace the previous object.
470
443
  */
471
444
  modifyRsbuildConfig: PluginHook<ModifyRsbuildConfigFn>;
472
- /**
473
- * Allows you to modify the webpack configuration using the `rspack-chain` API,
474
- * providing the same functionality as `tools.bundlerChain`.
475
- */
476
- modifyWebpackChain: PluginHook<ModifyWebpackChainFn>;
477
- /**
478
- * To modify the webpack config, you can directly modify the config object,
479
- * or return a new object to replace the previous object.
480
- */
481
- modifyWebpackConfig: PluginHook<ModifyWebpackConfigFn>;
482
445
  /**
483
446
  * A callback function that is triggered after running the production build.
484
447
  * You can access the build result information via the
@@ -1,21 +1,13 @@
1
1
  import type { Compiler, MultiCompiler } from '@rspack/core';
2
2
  import type { LoadEnvOptions } from '../loadEnv';
3
- import type * as providerHelpers from '../provider/helpers';
4
3
  import type { RsbuildDevServer } from '../server/devServer';
5
4
  import type { StartServerResult } from '../server/helper';
6
5
  import type { NormalizedConfig, NormalizedEnvironmentConfig, RsbuildConfig } from './config';
7
- import type { InternalContext, RsbuildContext } from './context';
8
- import type { PluginManager, RsbuildPlugin, RsbuildPluginAPI } from './plugin';
6
+ import type { RsbuildContext } from './context';
7
+ import type { RsbuildPlugin, RsbuildPluginAPI } from './plugin';
9
8
  import type { Rspack } from './rspack';
10
- import type { WebpackConfig } from './thirdParty';
11
9
  import type { Falsy } from './utils';
12
- export type Bundler = 'rspack' | 'webpack';
13
10
  export type StartDevServerOptions = {
14
- /**
15
- * Using a custom Rspack Compiler object.
16
- * @deprecated This is no longer supported and will be removed in a future version.
17
- */
18
- compiler?: Compiler | MultiCompiler;
19
11
  /**
20
12
  * Whether to get port silently and not print any logs.
21
13
  * @default false
@@ -47,11 +39,6 @@ export type BuildOptions = {
47
39
  * @default false
48
40
  */
49
41
  watch?: boolean;
50
- /**
51
- * Using a custom Rspack Compiler object.
52
- * @deprecated This is no longer supported and will be removed in a future version.
53
- */
54
- compiler?: Compiler | MultiCompiler;
55
42
  };
56
43
  export type Build = (options?: BuildOptions) => Promise<BuildResult>;
57
44
  export type BuildResult = {
@@ -103,17 +90,17 @@ export type InspectConfigOptions = {
103
90
  */
104
91
  extraConfigs?: Record<string, unknown>;
105
92
  };
106
- export type InspectConfigResult<B extends 'rspack' | 'webpack' = 'rspack'> = {
93
+ export type InspectConfigResult = {
107
94
  rsbuildConfig: string;
108
95
  bundlerConfigs: string[];
109
96
  environmentConfigs: string[];
110
97
  origin: {
111
98
  rsbuildConfig: Omit<NormalizedConfig, 'environments'>;
112
99
  environmentConfigs: Record<string, NormalizedEnvironmentConfig>;
113
- bundlerConfigs: B extends 'rspack' ? Rspack.Configuration[] : WebpackConfig[];
100
+ bundlerConfigs: Rspack.Configuration[];
114
101
  };
115
102
  };
116
- export type CreateCompiler = <C = Compiler | MultiCompiler>() => Promise<C>;
103
+ export type CreateCompiler = () => Promise<Compiler | MultiCompiler>;
117
104
  export type CreateRsbuildOptions = {
118
105
  /**
119
106
  * The root path of current project.
@@ -155,19 +142,7 @@ export type ResolvedCreateRsbuildOptions = Required<Pick<CreateRsbuildOptions, '
155
142
  };
156
143
  export type CreateDevServer = (options?: CreateDevServerOptions) => Promise<RsbuildDevServer>;
157
144
  export type StartDevServer = (options?: StartDevServerOptions) => Promise<StartServerResult>;
158
- export type InspectConfig<B extends 'rspack' | 'webpack' = 'rspack'> = (options?: InspectConfigOptions) => Promise<InspectConfigResult<B>>;
159
- export type ProviderInstance<B extends 'rspack' | 'webpack' = 'rspack'> = Pick<RsbuildInstance, 'build' | 'createCompiler' | 'createDevServer' | 'startDevServer'> & {
160
- readonly bundler: Bundler;
161
- initConfigs: (options?: InitConfigsOptions) => Promise<B extends 'rspack' ? Rspack.Configuration[] : WebpackConfig[]>;
162
- inspectConfig: InspectConfig<B>;
163
- };
164
- export type RsbuildProviderHelpers = typeof providerHelpers;
165
- export type RsbuildProvider<B extends 'rspack' | 'webpack' = 'rspack'> = (options: {
166
- context: InternalContext;
167
- pluginManager: PluginManager;
168
- rsbuildOptions: ResolvedCreateRsbuildOptions;
169
- helpers: RsbuildProviderHelpers;
170
- }) => Promise<ProviderInstance<B>> | ProviderInstance<B>;
145
+ export type InspectConfig = (options?: InspectConfigOptions) => Promise<InspectConfigResult>;
171
146
  export type AddPluginsOptions = {
172
147
  /**
173
148
  * Insert before the specified plugin.
@@ -7,10 +7,4 @@ declare module '@rspack/core' {
7
7
  __rsbuildTransformer?: Record<string, TransformHandler>;
8
8
  }
9
9
  }
10
- export interface BundlerPluginInstance {
11
- [index: string]: any;
12
- apply: (compiler: any) => void;
13
- }
14
- /** T[] => T */
15
- type GetElementType<T extends any[]> = T extends (infer U)[] ? U : never;
16
- export type RspackRule = GetElementType<Rspack.RuleSetRules>;
10
+ export type RspackRule = Rspack.RuleSetRules[number];
@@ -1,7 +1,5 @@
1
1
  import type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } from '@rspack/core';
2
- /** @ts-ignore `webpack` type only exists when `@rsbuild/webpack` is installed */
3
- import type { Configuration as WebpackConfig } from 'webpack';
4
- import type Connect from '../../compiled/connect/index.js';
2
+ import type Connect from 'connect';
5
3
  import type HtmlRspackPlugin from '../../compiled/html-rspack-plugin/index.js';
6
4
  import type { AcceptedPlugin, ProcessOptions } from '../../compiled/postcss';
7
5
  import type { Rspack } from './rspack';
@@ -12,7 +10,6 @@ export interface CSSExtractOptions {
12
10
  pluginOptions?: CssExtractRspackPluginOptions;
13
11
  loaderOptions?: CssExtractRspackLoaderOptions;
14
12
  }
15
- export type { WebpackConfig };
16
13
  /**
17
14
  * A loose PostCSS plugin type that accepts plugins from different
18
15
  * PostCSS versions. This helps avoid type conflicts when user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.7.2",
3
+ "version": "2.0.0-alpha.1",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.rs",
6
6
  "bugs": {
@@ -16,23 +16,13 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "types": "./dist-types/index.d.ts",
19
- "import": "./dist/index.js",
20
- "require": "./dist/index.cjs"
21
- },
22
- "./client/hmr": {
23
- "types": "./dist-types/client/hmr.d.ts",
24
- "default": "./dist/client/hmr.js"
25
- },
26
- "./client/overlay": {
27
- "types": "./dist-types/client/overlay.d.ts",
28
- "default": "./dist/client/overlay.js"
19
+ "default": "./dist/index.js"
29
20
  },
30
21
  "./types": {
31
22
  "types": "./types.d.ts"
32
23
  },
33
24
  "./package.json": "./package.json"
34
25
  },
35
- "main": "./dist/index.cjs",
36
26
  "types": "./dist-types/index.d.ts",
37
27
  "bin": {
38
28
  "rsbuild": "./bin/rsbuild.js"
@@ -46,22 +36,28 @@
46
36
  "types.d.ts"
47
37
  ],
48
38
  "dependencies": {
49
- "@rspack/core": "~1.7.1",
39
+ "@rspack/core": "2.0.0-canary.20260120",
50
40
  "@rspack/lite-tapable": "~1.1.0",
51
41
  "@swc/helpers": "^0.5.18",
52
- "core-js": "~3.47.0",
53
42
  "jiti": "^2.6.1"
54
43
  },
44
+ "peerDependencies": {
45
+ "core-js": ">= 3.0.0"
46
+ },
47
+ "peerDependenciesMeta": {
48
+ "core-js": {
49
+ "optional": true
50
+ }
51
+ },
55
52
  "devDependencies": {
56
53
  "@jridgewell/remapping": "^2.3.5",
57
54
  "@jridgewell/trace-mapping": "^0.3.31",
58
- "@rslib/core": "0.19.1",
55
+ "@rslib/core": "0.19.2",
59
56
  "@types/connect": "3.4.38",
60
57
  "@types/cors": "^2.8.19",
61
- "@types/node": "^24.10.4",
58
+ "@types/node": "^24.10.9",
62
59
  "@types/on-finished": "2.3.5",
63
60
  "@types/range-parser": "^1.2.7",
64
- "@types/webpack-bundle-analyzer": "4.7.0",
65
61
  "@types/ws": "^8.18.1",
66
62
  "browserslist-load-config": "1.0.1",
67
63
  "cac": "^6.7.14",
@@ -86,20 +82,19 @@
86
82
  "range-parser": "^1.2.1",
87
83
  "reduce-configs": "^1.1.1",
88
84
  "rslog": "^1.3.2",
89
- "rspack-chain": "^1.4.3",
90
- "rspack-manifest-plugin": "5.2.0",
85
+ "rspack-chain": "^2.0.0-alpha.0",
86
+ "rspack-manifest-plugin": "5.2.1",
91
87
  "sirv": "^3.0.2",
92
88
  "stacktrace-parser": "^0.1.11",
93
89
  "style-loader": "3.3.4",
94
90
  "tinyglobby": "0.2.14",
95
91
  "typescript": "^5.9.3",
96
92
  "webpack": "^5.104.1",
97
- "webpack-bundle-analyzer": "^4.10.2",
98
93
  "webpack-merge": "6.0.1",
99
- "ws": "^8.18.3"
94
+ "ws": "^8.19.0"
100
95
  },
101
96
  "engines": {
102
- "node": ">=18.12.0"
97
+ "node": "^20.19.0 || >=22.12.0"
103
98
  },
104
99
  "publishConfig": {
105
100
  "access": "public",
@@ -1 +0,0 @@
1
- export = any;