@rsbuild/core 2.3.4 → 2.3.6
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 +2 -2
- package/compiled/html-rspack-plugin/index.js +27 -50
- package/compiled/html-rspack-plugin/package.json +1 -1
- package/compiled/postcss/index.js +1 -1
- package/compiled/postcss/lib/node.d.ts +2 -2
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +11 -11
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/types/index.d.ts +3 -0
- package/compiled/style-loader/index.js +8 -8
- package/dist/helpers/index.d.ts +6 -1
- package/dist/index.d.ts +1 -1
- package/dist/m.js +348 -242
- package/dist/manifest-plugin.js +1 -1
- package/dist/plugins/builtinCss.d.ts +2 -0
- package/dist/plugins/css.d.ts +1 -2
- package/dist/plugins/cssShared.d.ts +7 -0
- package/dist/server/socketServer.d.ts +1 -1
- package/dist/types/config.d.ts +11 -0
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
module.exports = __nccwpck_require__(
|
|
4
|
+
534: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
module.exports = __nccwpck_require__(372)["default"];
|
|
6
6
|
},
|
|
7
|
-
|
|
7
|
+
712: (__unused_webpack_module, exports) => {
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.createCompilationCache = createCompilationCache;
|
|
10
10
|
exports.getCompilation = getCompilation;
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
|
|
92
|
+
372: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
93
93
|
var __webpack_unused_export__;
|
|
94
94
|
__webpack_unused_export__ = { value: true };
|
|
95
95
|
exports["default"] = loader;
|
|
96
96
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
97
|
-
var _compilationCache = __nccwpck_require__(
|
|
98
|
-
var _utils = __nccwpck_require__(
|
|
97
|
+
var _compilationCache = __nccwpck_require__(712);
|
|
98
|
+
var _utils = __nccwpck_require__(965);
|
|
99
99
|
function _interopRequireDefault(e) {
|
|
100
100
|
return e && e.__esModule ? e : { default: e };
|
|
101
101
|
}
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
callback(null, result.css, map, { ast });
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
|
-
|
|
271
|
+
965: (module, exports, __nccwpck_require__) => {
|
|
272
272
|
module = __nccwpck_require__.nmd(module);
|
|
273
273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
274
274
|
exports.exec = exec;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
var _nodePath = _interopRequireDefault(__nccwpck_require__(760));
|
|
285
285
|
var _nodeUrl = _interopRequireDefault(__nccwpck_require__(136));
|
|
286
286
|
var _cosmiconfig = {};
|
|
287
|
-
var _compilationCache = __nccwpck_require__(
|
|
287
|
+
var _compilationCache = __nccwpck_require__(712);
|
|
288
288
|
function _interopRequireDefault(e) {
|
|
289
289
|
return e && e.__esModule ? e : { default: e };
|
|
290
290
|
}
|
|
@@ -829,6 +829,8 @@
|
|
|
829
829
|
module.loaded = true;
|
|
830
830
|
return module.exports;
|
|
831
831
|
}
|
|
832
|
+
if (typeof __nccwpck_require__ !== "undefined")
|
|
833
|
+
__nccwpck_require__.ab = __dirname + "/";
|
|
832
834
|
(() => {
|
|
833
835
|
__nccwpck_require__.nmd = (module) => {
|
|
834
836
|
module.paths = [];
|
|
@@ -836,8 +838,6 @@
|
|
|
836
838
|
return module;
|
|
837
839
|
};
|
|
838
840
|
})();
|
|
839
|
-
|
|
840
|
-
__nccwpck_require__.ab = __dirname + "/";
|
|
841
|
-
var __webpack_exports__ = __nccwpck_require__(58);
|
|
841
|
+
var __webpack_exports__ = __nccwpck_require__(534);
|
|
842
842
|
module.exports = __webpack_exports__;
|
|
843
843
|
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"rspack-chain","version":"2.
|
|
1
|
+
{"name":"rspack-chain","version":"2.4.0","license":"MIT","types":"types/index.d.ts","type":"module"}
|
|
@@ -429,6 +429,7 @@ export declare namespace RspackChain {
|
|
|
429
429
|
): Use<this, Options>;
|
|
430
430
|
rule(name: string): Rule<Rule>;
|
|
431
431
|
oneOf(name: string): Rule<Rule>;
|
|
432
|
+
cloneFrom<SourceParent>(source: Rule<SourceParent>): this;
|
|
432
433
|
pre(): this;
|
|
433
434
|
post(): this;
|
|
434
435
|
before(name: string): this;
|
|
@@ -497,6 +498,8 @@ export declare namespace RspackChain {
|
|
|
497
498
|
|
|
498
499
|
tap(f: (options: Options) => Options): this;
|
|
499
500
|
|
|
501
|
+
cloneFrom<SourceParent>(source: Use<SourceParent, Options>): this;
|
|
502
|
+
|
|
500
503
|
// Orderable
|
|
501
504
|
before(name: string): this;
|
|
502
505
|
after(name: string): this;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
"use strict";
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
|
-
|
|
5
|
-
const loader = __nccwpck_require__(
|
|
4
|
+
810: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
5
|
+
const loader = __nccwpck_require__(688);
|
|
6
6
|
module.exports = loader.default;
|
|
7
7
|
},
|
|
8
|
-
|
|
8
|
+
688: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports["default"] = void 0;
|
|
11
11
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
12
|
-
var _utils = __nccwpck_require__(
|
|
12
|
+
var _utils = __nccwpck_require__(705);
|
|
13
13
|
var _options = _interopRequireDefault(__nccwpck_require__(224));
|
|
14
14
|
function _interopRequireDefault(obj) {
|
|
15
15
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
};
|
|
96
96
|
var _default = (exports["default"] = loader);
|
|
97
97
|
},
|
|
98
|
-
|
|
98
|
+
179: (module) => {
|
|
99
99
|
function isEqualLocals(a, b, isNamedExport) {
|
|
100
100
|
if ((!a && b) || (a && !b)) {
|
|
101
101
|
return false;
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
module.exports = isEqualLocals;
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
705: (__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
125
125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
126
126
|
exports.getExportLazyStyleCode = getExportLazyStyleCode;
|
|
127
127
|
exports.getExportStyleCode = getExportStyleCode;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
exports.getdomAPI = getdomAPI;
|
|
143
143
|
exports.stringifyRequest = stringifyRequest;
|
|
144
144
|
var _path = _interopRequireDefault(__nccwpck_require__(928));
|
|
145
|
-
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(
|
|
145
|
+
var _isEqualLocals = _interopRequireDefault(__nccwpck_require__(179));
|
|
146
146
|
function _interopRequireDefault(obj) {
|
|
147
147
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
148
148
|
}
|
|
@@ -365,6 +365,6 @@
|
|
|
365
365
|
}
|
|
366
366
|
if (typeof __nccwpck_require__ !== "undefined")
|
|
367
367
|
__nccwpck_require__.ab = __dirname + "/";
|
|
368
|
-
var __webpack_exports__ = __nccwpck_require__(
|
|
368
|
+
var __webpack_exports__ = __nccwpck_require__(810);
|
|
369
369
|
module.exports = __webpack_exports__;
|
|
370
370
|
})();
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { color } from '../../compiled/rslog/index.js';
|
|
2
2
|
import { RspackChain } from '../../compiled/rspack-chain/types/index.js';
|
|
3
|
-
import type { FilenameConfig, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildTarget, Rspack } from '../types/index.js';
|
|
3
|
+
import type { FilenameConfig, FilenameHash, NormalizedConfig, NormalizedEnvironmentConfig, OutputConfig, RsbuildTarget, Rspack } from '../types/index.js';
|
|
4
4
|
export { require } from './vendors.js';
|
|
5
5
|
export { color, RspackChain };
|
|
6
6
|
export declare const getNodeEnv: () => string;
|
|
@@ -11,6 +11,11 @@ export declare const isObject: (obj: unknown) => obj is Record<string, any>;
|
|
|
11
11
|
export declare const isPlainObject: (obj: unknown) => obj is Record<string, any>;
|
|
12
12
|
export declare const castArray: <T>(arr?: T | T[]) => T[];
|
|
13
13
|
export declare const cloneDeep: <T>(value: T) => T;
|
|
14
|
+
export declare const normalizeCopyOptions: (copy: NonNullable<OutputConfig['copy']>) => Rspack.CopyRspackPluginOptions;
|
|
15
|
+
export declare const normalizeFilenameHash: (filenameHash: FilenameHash) => {
|
|
16
|
+
enable: boolean | 'always';
|
|
17
|
+
format: string;
|
|
18
|
+
};
|
|
14
19
|
export declare function getFilename(config: NormalizedConfig | NormalizedEnvironmentConfig, type: 'js', isProd: boolean, isServer?: boolean): Rspack.Filename;
|
|
15
20
|
export declare function getFilename(config: NormalizedConfig | NormalizedEnvironmentConfig, type: 'css', isProd: boolean): Rspack.CssFilename;
|
|
16
21
|
export declare function getFilename(config: NormalizedConfig | NormalizedEnvironmentConfig, type: 'html', isProd?: boolean): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,4 +25,4 @@ export type { HotClient, HotOn, HotOnConnect, RsbuildDevServer } from './server/
|
|
|
25
25
|
export type { RsbuildServerBase, ServerStartResult, StartDevServerResult, StartPreviewServerResult } from './server/helper.js';
|
|
26
26
|
export type { RsbuildPreviewServer } from './server/previewServer.js';
|
|
27
27
|
// Types
|
|
28
|
-
export type { AliasStrategy, AppIcon, AppIconItem, AutoExternal, AutoExternalExclude, Build, BuildOptions, BuildResult, Charset, CleanDistPath, CleanDistPathObject, ClientConfig, CliShortcut, CompressOptions, ConfigChain, ConfigChainWithContext, Connect, ConsoleType, CreateCompiler, CreateRsbuildOptions, CrossOrigin, CSSLoaderOptions, CSSModules, CSSModulesLocalsConvention, DataUriLimit, Decorators, DevConfig, DistPathConfig, EnvironmentConfig, EnvironmentContext, FilenameConfig, FilenameHash, HistoryApiFallbackContext, HistoryApiFallbackOptions, HtmlBasicTag, HtmlConfig, HtmlFallback, HtmlRspackPlugin, HtmlTag, HtmlTagContext, HtmlTagDescriptor, HtmlTagHandler, InitConfigsOptions, InlineChunkConfig, InlineChunkTest, InlineChunkTestFunction, InspectConfigOptions, InspectConfigResult, InternalContext, LegalComments, LogLevel, ManifestConfig, ManifestData, ManifestObjectConfig, MergedEnvironmentConfig, MetaAttrs, MetaOptions, Minify, ModifyBundlerChainFn, ModifyBundlerChainUtils, ModifyChainUtils, ModifyEnvironmentConfigFn, ModifyEnvironmentConfigUtils, ModifyHTMLContext, ModifyHTMLFn, ModifyHTMLTagsContext, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, ModifyRsbuildConfigUtils, ModifyRspackConfigFn, ModifyRspackConfigUtils, ModuleFederationConfig, NormalizedConfig, NormalizedDevConfig, NormalizedEnvironmentConfig, NormalizedHtmlConfig, NormalizedModuleFederationConfig, NormalizedOutputConfig, NormalizedPerformanceConfig, NormalizedResolveConfig, NormalizedSecurityConfig, NormalizedServerConfig, NormalizedSourceConfig, NormalizedSplitChunksConfig, NormalizedToolsConfig, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterDevCompileFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartPreviewServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeDevCompileFn, OnBeforeEnvironmentCompileFn, OnBeforeStartDevServerFn, OnBeforeStartPreviewServerFn, OnCloseBuildFn, OnCloseDevServerFn, OnClosePreviewServerFn, OnDevCompileDoneFn, OnExitFn, OnRestartFn, OutputConfig, OverlayOptions, OutputStructure, PerformanceConfig, PluginManager, Polyfill, PostCSSLoaderOptions, PostCSSOptions, PostCSSPlugin, PreconnectOption, PreviewOptions, PrintUrls, ProcessAssetsDescriptor, ProcessAssetsHandler, ProcessAssetsHook, ProgressBarConfig, ProxyBypass, ProxyConfig, ProxyFilter, ProxyOptions, PublicDir, PublicDirOptions, ReadonlyRoutes, RequestHandler, ResolveConfig, ResolvedCreateRsbuildOptions, ResolveHandler, ResolveHook, ResourceHintsIncludeType, RestartContext, RestartFn, RsbuildConfig, RsbuildContext, RsbuildEntry, RsbuildEntryDescription, RsbuildInstance, RsbuildMiddlewares, RsbuildMode, RsbuildPlugin, RsbuildPluginAPI, RsbuildPlugins, RsbuildServerResponse, RsbuildTarget, RspackChain, RspackRule, ScriptInject, ScriptLoading, SecurityConfig, ServerConfig, SetupMiddlewaresContext, SetupMiddlewaresFn, SourceConfig, SourceMap, SourceMapExtract, SourceMapExtractOptions, SourceMapExtractTarget, SplitChunks, SplitChunksConfig, SplitChunksPreset, SriAlgorithm, SriOptions, StartDevServerOptions, StyleLoaderOptions, ToolsConfig, TransformContext, TransformDescriptor, TransformHandler, TransformHook, TransformImport, WatchFileEvent, WatchFiles, WebSocketUrlResolver } from './types/index.js';
|
|
28
|
+
export type { AliasStrategy, AppIcon, AppIconItem, AutoExternal, AutoExternalExclude, Build, BuildOptions, BuildResult, Charset, CleanDistPath, CleanDistPathObject, ClientConfig, CliShortcut, CompressOptions, ConfigChain, ConfigChainWithContext, Connect, ConsoleType, CreateCompiler, CreateRsbuildOptions, CrossOrigin, CSSConfig, CSSLoaderOptions, CSSModules, CSSModulesLocalsConvention, DataUriLimit, Decorators, DevConfig, DistPathConfig, EnvironmentConfig, EnvironmentContext, FilenameConfig, FilenameHash, HistoryApiFallbackContext, HistoryApiFallbackOptions, HtmlBasicTag, HtmlConfig, HtmlFallback, HtmlRspackPlugin, HtmlTag, HtmlTagContext, HtmlTagDescriptor, HtmlTagHandler, InitConfigsOptions, InlineChunkConfig, InlineChunkTest, InlineChunkTestFunction, InspectConfigOptions, InspectConfigResult, InternalContext, LegalComments, LogLevel, ManifestConfig, ManifestData, ManifestObjectConfig, MergedEnvironmentConfig, MetaAttrs, MetaOptions, Minify, ModifyBundlerChainFn, ModifyBundlerChainUtils, ModifyChainUtils, ModifyEnvironmentConfigFn, ModifyEnvironmentConfigUtils, ModifyHTMLContext, ModifyHTMLFn, ModifyHTMLTagsContext, ModifyHTMLTagsFn, ModifyRsbuildConfigFn, ModifyRsbuildConfigUtils, ModifyRspackConfigFn, ModifyRspackConfigUtils, ModuleFederationConfig, NormalizedConfig, NormalizedDevConfig, NormalizedEnvironmentConfig, NormalizedHtmlConfig, NormalizedModuleFederationConfig, NormalizedOutputConfig, NormalizedPerformanceConfig, NormalizedResolveConfig, NormalizedSecurityConfig, NormalizedServerConfig, NormalizedSourceConfig, NormalizedSplitChunksConfig, NormalizedToolsConfig, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterDevCompileFn, OnAfterEnvironmentCompileFn, OnAfterStartDevServerFn, OnAfterStartPreviewServerFn, OnBeforeBuildFn, OnBeforeCreateCompilerFn, OnBeforeDevCompileFn, OnBeforeEnvironmentCompileFn, OnBeforeStartDevServerFn, OnBeforeStartPreviewServerFn, OnCloseBuildFn, OnCloseDevServerFn, OnClosePreviewServerFn, OnDevCompileDoneFn, OnExitFn, OnRestartFn, OutputConfig, OverlayOptions, OutputStructure, PerformanceConfig, PluginManager, Polyfill, PostCSSLoaderOptions, PostCSSOptions, PostCSSPlugin, PreconnectOption, PreviewOptions, PrintUrls, ProcessAssetsDescriptor, ProcessAssetsHandler, ProcessAssetsHook, ProgressBarConfig, ProxyBypass, ProxyConfig, ProxyFilter, ProxyOptions, PublicDir, PublicDirOptions, ReadonlyRoutes, RequestHandler, ResolveConfig, ResolvedCreateRsbuildOptions, ResolveHandler, ResolveHook, ResourceHintsIncludeType, RestartContext, RestartFn, RsbuildConfig, RsbuildContext, RsbuildEntry, RsbuildEntryDescription, RsbuildInstance, RsbuildMiddlewares, RsbuildMode, RsbuildPlugin, RsbuildPluginAPI, RsbuildPlugins, RsbuildServerResponse, RsbuildTarget, RspackChain, RspackRule, ScriptInject, ScriptLoading, SecurityConfig, ServerConfig, SetupMiddlewaresContext, SetupMiddlewaresFn, SourceConfig, SourceMap, SourceMapExtract, SourceMapExtractOptions, SourceMapExtractTarget, SplitChunks, SplitChunksConfig, SplitChunksPreset, SriAlgorithm, SriOptions, StartDevServerOptions, StyleLoaderOptions, ToolsConfig, TransformContext, TransformDescriptor, TransformHandler, TransformHook, TransformImport, WatchFileEvent, WatchFiles, WebSocketUrlResolver } from './types/index.js';
|