@rsbuild/core 1.1.5 → 1.1.7
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.
- package/compiled/css-loader/index.js +22 -22
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +8 -8
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/webpack-bundle-analyzer/index.js +1 -1
- package/dist/index.cjs +110 -62
- package/dist/index.js +109 -61
- package/dist-types/hooks.d.ts +2 -1
- package/dist-types/types/config.d.ts +33 -6
- package/dist-types/types/hooks.d.ts +1 -0
- package/dist-types/types/plugin.d.ts +2 -1
- package/dist-types/types/rsbuild.d.ts +1 -0
- package/package.json +3 -6
|
@@ -3,7 +3,7 @@ import type RspackChain from '../../compiled/rspack-chain/index.js';
|
|
|
3
3
|
import type { ChainIdentifier } from '../configChain';
|
|
4
4
|
import type { ModifyRspackConfigUtils, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildConfig } from './config';
|
|
5
5
|
import type { RsbuildContext } from './context';
|
|
6
|
-
import type { EnvironmentContext, ModifyBundlerChainFn, ModifyChainUtils, ModifyEnvironmentConfigFn, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeEnvironmentCompile, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnCloseDevServerFn, OnDevCompileDoneFn, OnExitFn } from './hooks';
|
|
6
|
+
import type { EnvironmentContext, ModifyBundlerChainFn, ModifyChainUtils, ModifyEnvironmentConfigFn, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeEnvironmentCompile, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnCloseBuildFn, OnCloseDevServerFn, OnDevCompileDoneFn, OnExitFn } from './hooks';
|
|
7
7
|
import type { RsbuildTarget } from './rsbuild';
|
|
8
8
|
import type { Rspack } from './rspack';
|
|
9
9
|
import type { HtmlRspackPlugin } from './thirdParty';
|
|
@@ -279,6 +279,7 @@ export type RsbuildPluginAPI = Readonly<{
|
|
|
279
279
|
context: Readonly<RsbuildContext>;
|
|
280
280
|
isPluginExists: PluginManager['isPluginExists'];
|
|
281
281
|
onExit: PluginHook<OnExitFn>;
|
|
282
|
+
onCloseBuild: PluginHook<OnCloseBuildFn>;
|
|
282
283
|
onAfterBuild: PluginHook<OnAfterBuildFn>;
|
|
283
284
|
onBeforeBuild: PluginHook<OnBeforeBuildFn>;
|
|
284
285
|
onAfterEnvironmentCompile: PluginHook<OnAfterEnvironmentCompileFn>;
|
|
@@ -134,6 +134,7 @@ export type RsbuildInstance = {
|
|
|
134
134
|
onCloseDevServer: RsbuildPluginAPI['onCloseDevServer'];
|
|
135
135
|
onDevCompileDone: RsbuildPluginAPI['onDevCompileDone'];
|
|
136
136
|
onExit: RsbuildPluginAPI['onExit'];
|
|
137
|
+
onCloseBuild: RsbuildPluginAPI['onCloseBuild'];
|
|
137
138
|
};
|
|
138
139
|
export type RsbuildTarget = 'web' | 'node' | 'web-worker';
|
|
139
140
|
export type RsbuildEntryDescription = Rspack.EntryDescription & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"types.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rspack/core": "~1.1.
|
|
49
|
+
"@rspack/core": "~1.1.4",
|
|
50
50
|
"@rspack/lite-tapable": "~1.0.1",
|
|
51
51
|
"@swc/helpers": "^0.5.15",
|
|
52
52
|
"core-js": "~3.39.0"
|
|
@@ -54,8 +54,7 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@rslib/core": "0.1.0",
|
|
56
56
|
"@types/connect": "3.4.38",
|
|
57
|
-
"@types/
|
|
58
|
-
"@types/node": "^22.9.3",
|
|
57
|
+
"@types/node": "^22.10.0",
|
|
59
58
|
"@types/on-finished": "2.3.4",
|
|
60
59
|
"@types/webpack-bundle-analyzer": "4.7.0",
|
|
61
60
|
"@types/ws": "^8.5.13",
|
|
@@ -68,7 +67,6 @@
|
|
|
68
67
|
"deepmerge": "^4.3.1",
|
|
69
68
|
"dotenv": "16.4.5",
|
|
70
69
|
"dotenv-expand": "11.0.7",
|
|
71
|
-
"fs-extra": "^11.2.0",
|
|
72
70
|
"html-rspack-plugin": "6.0.2",
|
|
73
71
|
"http-proxy-middleware": "^2.0.6",
|
|
74
72
|
"jiti": "^1.21.6",
|
|
@@ -82,7 +80,6 @@
|
|
|
82
80
|
"postcss-loader": "8.1.1",
|
|
83
81
|
"prebundle": "1.2.5",
|
|
84
82
|
"reduce-configs": "^1.1.0",
|
|
85
|
-
"rimraf": "^6.0.1",
|
|
86
83
|
"rsbuild-dev-middleware": "0.1.2",
|
|
87
84
|
"rslog": "^1.2.3",
|
|
88
85
|
"rspack-chain": "^1.1.0",
|