@rsbuild/core 1.3.4 → 1.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/chokidar/index.d.ts +2 -1
- package/compiled/css-loader/index.js +18 -18
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/http-proxy-middleware/index.d.ts +3 -2
- package/compiled/postcss/lib/at-rule.d.ts +140 -0
- package/compiled/postcss/lib/comment.d.ts +68 -0
- package/compiled/postcss/lib/container.d.ts +480 -0
- package/compiled/postcss/lib/css-syntax-error.d.ts +248 -0
- package/compiled/postcss/lib/declaration.d.ts +151 -0
- package/compiled/postcss/lib/document.d.ts +69 -0
- package/compiled/postcss/lib/fromJSON.d.ts +9 -0
- package/compiled/postcss/lib/input.d.ts +206 -0
- package/compiled/postcss/lib/lazy-result.d.ts +190 -0
- package/compiled/postcss/lib/list.d.ts +60 -0
- package/compiled/postcss/lib/no-work-result.d.ts +46 -0
- package/compiled/postcss/lib/node.d.ts +541 -0
- package/compiled/postcss/lib/parse.d.ts +9 -0
- package/compiled/postcss/lib/postcss.d.ts +458 -0
- package/compiled/postcss/lib/previous-map.d.ts +81 -0
- package/compiled/postcss/lib/processor.d.ts +115 -0
- package/compiled/postcss/lib/result.d.ts +205 -0
- package/compiled/postcss/lib/root.d.ts +87 -0
- package/compiled/postcss/lib/rule.d.ts +126 -0
- package/compiled/postcss/lib/stringifier.d.ts +46 -0
- package/compiled/postcss/lib/stringify.d.ts +9 -0
- package/compiled/postcss/lib/warning.d.ts +147 -0
- package/compiled/postcss/package.json +1 -1
- package/compiled/postcss-loader/index.js +6 -6
- package/compiled/rslog/index.d.ts +2 -1
- package/compiled/rspack-chain/index.js +66 -66
- package/compiled/rspack-chain/package.json +1 -1
- package/compiled/rspack-chain/{index.d.ts → types/index.d.ts} +18 -2
- package/compiled/rspack-manifest-plugin/index.d.ts +2 -1
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/compiled/tinyglobby/index.d.ts +2 -1
- package/dist/index.cjs +92 -51
- package/dist/index.js +90 -50
- package/dist-types/configChain.d.ts +1 -1
- package/dist-types/helpers/exitHook.d.ts +3 -0
- package/dist-types/helpers/index.d.ts +1 -1
- package/dist-types/types/config.d.ts +2 -3
- package/dist-types/types/hooks.d.ts +6 -2
- package/dist-types/types/plugin.d.ts +1 -1
- package/dist-types/types/rspack.d.ts +1 -1
- package/dist-types/types/thirdParty.d.ts +2 -2
- package/package.json +6 -6
- package/types.d.ts +8 -8
- package/compiled/postcss/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -13,13 +13,14 @@ import * as __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__ from "
|
|
|
13
13
|
import * as __WEBPACK_EXTERNAL_MODULE_node_util_types_ce11fc49__ from "node:util/types";
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
|
|
15
15
|
import * as __WEBPACK_EXTERNAL_MODULE__compiled_rspack_chain_index_js_b67fefbd__ from "../compiled/rspack-chain/index.js";
|
|
16
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__ from "node:os";
|
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
|
|
16
18
|
import * as __WEBPACK_EXTERNAL_MODULE_node_util_1b29d436__ from "node:util";
|
|
17
19
|
import * as __WEBPACK_EXTERNAL_MODULE__compiled_mrmime_index_js_86f064ca__ from "../compiled/mrmime/index.js";
|
|
18
20
|
import * as __WEBPACK_EXTERNAL_MODULE_node_crypto_9ba42079__ from "node:crypto";
|
|
19
21
|
import * as __WEBPACK_EXTERNAL_MODULE_node_zlib_a5bb16fc__ from "node:zlib";
|
|
20
22
|
import * as __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__ from "node:child_process";
|
|
21
23
|
import * as __WEBPACK_EXTERNAL_MODULE_node_net_0373943e__ from "node:net";
|
|
22
|
-
import * as __WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__ from "node:os";
|
|
23
24
|
import * as __WEBPACK_EXTERNAL_MODULE_node_inspector_dd9822d6__ from "node:inspector";
|
|
24
25
|
import * as __WEBPACK_EXTERNAL_MODULE_node_assert_3e74d44e__ from "node:assert";
|
|
25
26
|
import * as __WEBPACK_EXTERNAL_MODULE_node_readline_91c31510__ from "node:readline";
|
|
@@ -126,8 +127,8 @@ var EsmMode, __webpack_modules__ = {
|
|
|
126
127
|
return options;
|
|
127
128
|
};
|
|
128
129
|
},
|
|
129
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
130
|
-
let fs = __webpack_require__("fs"), path = __webpack_require__("path"), os = __webpack_require__("os"), crypto = __webpack_require__("crypto"), version = __webpack_require__("../../node_modules/.pnpm/dotenv@16.
|
|
130
|
+
"../../node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
131
|
+
let fs = __webpack_require__("fs"), path = __webpack_require__("path"), os = __webpack_require__("os"), crypto = __webpack_require__("crypto"), version = __webpack_require__("../../node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json").version, LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;
|
|
131
132
|
function _debug(message) {
|
|
132
133
|
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
133
134
|
}
|
|
@@ -173,7 +174,7 @@ var EsmMode, __webpack_modules__ = {
|
|
|
173
174
|
};
|
|
174
175
|
},
|
|
175
176
|
_configVault: function(options) {
|
|
176
|
-
|
|
177
|
+
options && options.debug && _debug('Loading env from encrypted .env.vault');
|
|
177
178
|
let parsed = DotenvModule._parseVault(options), processEnv = process.env;
|
|
178
179
|
return options && null != options.processEnv && (processEnv = options.processEnv), DotenvModule.populate(processEnv, parsed, options), {
|
|
179
180
|
parsed
|
|
@@ -893,8 +894,8 @@ var EsmMode, __webpack_modules__ = {
|
|
|
893
894
|
path: function(module) {
|
|
894
895
|
module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
|
|
895
896
|
},
|
|
896
|
-
"../../node_modules/.pnpm/dotenv@16.
|
|
897
|
-
module.exports = JSON.parse('{"name":"dotenv","version":"16.
|
|
897
|
+
"../../node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/package.json": function(module) {
|
|
898
|
+
module.exports = JSON.parse('{"name":"dotenv","version":"16.5.0","description":"Loads environment variables from .env file","main":"lib/main.js","types":"lib/main.d.ts","exports":{".":{"types":"./lib/main.d.ts","require":"./lib/main.js","default":"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},"scripts":{"dts-check":"tsc --project tests/types/tsconfig.json","lint":"standard","pretest":"npm run lint && npm run dts-check","test":"tap run --allow-empty-coverage --disable-coverage --timeout=60000","test:coverage":"tap run --show-full-coverage --timeout=60000 --coverage-report=lcov","prerelease":"npm test","release":"standard-version"},"repository":{"type":"git","url":"git://github.com/motdotla/dotenv.git"},"homepage":"https://github.com/motdotla/dotenv#readme","funding":"https://dotenvx.com","keywords":["dotenv","env",".env","environment","variables","config","settings"],"readmeFilename":"README.md","license":"BSD-2-Clause","devDependencies":{"@types/node":"^18.11.3","decache":"^4.6.2","sinon":"^14.0.1","standard":"^17.0.0","standard-version":"^9.5.0","tap":"^19.2.0","typescript":"^4.8.4"},"engines":{"node":">=12"},"browser":{"fs":false}}');
|
|
898
899
|
}
|
|
899
900
|
}, __webpack_module_cache__ = {};
|
|
900
901
|
function __webpack_require__(moduleId) {
|
|
@@ -941,7 +942,7 @@ __webpack_require__.r(provider_helpers_namespaceObject), __webpack_require__.d(p
|
|
|
941
942
|
setHTMLPlugin: ()=>setHTMLPlugin,
|
|
942
943
|
stringifyConfig: ()=>stringifyConfig
|
|
943
944
|
});
|
|
944
|
-
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.
|
|
945
|
+
var main = __webpack_require__("../../node_modules/.pnpm/dotenv@16.5.0/node_modules/dotenv/lib/main.js"), lib_main = __webpack_require__("../../node_modules/.pnpm/dotenv-expand@12.0.1/node_modules/dotenv-expand/lib/main.js"), cjs = __webpack_require__("../../node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js"), cjs_default = __webpack_require__.n(cjs);
|
|
945
946
|
let constants_filename = (0, __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__.fileURLToPath)(import.meta.url), constants_dirname = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.dirname)(constants_filename), ROOT_DIST_DIR = 'dist', LOADER_PATH = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(constants_dirname), STATIC_PATH = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(constants_dirname, '../static'), COMPILED_PATH = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(constants_dirname, '../compiled'), RSBUILD_OUTPUTS_PATH = '.rsbuild', DEFAULT_DEV_HOST = '0.0.0.0', DEFAULT_ASSET_PREFIX = '/', DEFAULT_WEB_BROWSERSLIST = [
|
|
946
947
|
'chrome >= 87',
|
|
947
948
|
'edge >= 88',
|
|
@@ -1137,7 +1138,7 @@ function formatMessage(stats, verbose) {
|
|
|
1137
1138
|
return !verbose && message.includes(innerError) && (message = message.split(innerError)[0]), (message = (message = hintNodePolyfill(message = function(message) {
|
|
1138
1139
|
let hint = 'You may need an appropriate loader to handle this file type.';
|
|
1139
1140
|
if (-1 === message.indexOf(hint)) return message;
|
|
1140
|
-
let createPluginHint = (packageName, keyword)=>`To enable support for ${keyword}, use "${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.yellow(`@rsbuild/plugin-${packageName}`)}" ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.dim(`(https://
|
|
1141
|
+
let createPluginHint = (packageName, keyword)=>`To enable support for ${keyword}, use "${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.yellow(`@rsbuild/plugin-${packageName}`)}" ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.dim(`(https://npmjs.com/package/@rsbuild/plugin-${packageName})`)}.`;
|
|
1141
1142
|
for (let plugin of [
|
|
1142
1143
|
{
|
|
1143
1144
|
test: /File: .+\.s(c|a)ss/,
|
|
@@ -1414,7 +1415,7 @@ let configCache = {}, OVERRIDE_PATHS = [
|
|
|
1414
1415
|
let realKey = key.split('.').slice(2).join('.');
|
|
1415
1416
|
return OVERRIDE_PATHS.includes(realKey);
|
|
1416
1417
|
}
|
|
1417
|
-
return OVERRIDE_PATHS.includes(key);
|
|
1418
|
+
return OVERRIDE_PATHS.includes(key) || key.startsWith('output.filename.');
|
|
1418
1419
|
}, merge = (x, y, path = '')=>{
|
|
1419
1420
|
if (isOverridePath(path)) return y ?? x;
|
|
1420
1421
|
if (void 0 === x) return isPlainObject(y) ? cloneDeep(y) : y;
|
|
@@ -1989,7 +1990,17 @@ let onBeforeCompile = ({ compiler, beforeCompile, beforeEnvironmentCompiler, isW
|
|
|
1989
1990
|
onEnvironmentDone,
|
|
1990
1991
|
MultiStatsCtor
|
|
1991
1992
|
});
|
|
1992
|
-
},
|
|
1993
|
+
}, exitHook_callbacks = new Set(), isCalled = !1, isRegistered = !1;
|
|
1994
|
+
function exit(exitCode, type) {
|
|
1995
|
+
if (!isCalled) {
|
|
1996
|
+
for (let callback of (isCalled = !0, exitHook_callbacks))callback(exitCode);
|
|
1997
|
+
if ('SIGINT' === type) {
|
|
1998
|
+
let listeners = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.default.listeners('SIGINT');
|
|
1999
|
+
Array.isArray(listeners) && listeners.length <= 1 && __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.default.exit(exitCode);
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
let mapProcessAssetsStage = (compiler, stage)=>{
|
|
1993
2004
|
let { Compilation } = compiler.webpack;
|
|
1994
2005
|
switch(stage){
|
|
1995
2006
|
case 'additional':
|
|
@@ -2107,7 +2118,7 @@ async function updateEnvironmentContext(context, configs) {
|
|
|
2107
2118
|
async function createContext(options, userConfig) {
|
|
2108
2119
|
let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0;
|
|
2109
2120
|
return {
|
|
2110
|
-
version: "1.3.
|
|
2121
|
+
version: "1.3.6",
|
|
2111
2122
|
rootPath,
|
|
2112
2123
|
distPath: '',
|
|
2113
2124
|
cachePath,
|
|
@@ -2943,32 +2954,32 @@ async function printFileSizes(options, stats, rootPath, environmentName) {
|
|
|
2943
2954
|
}, assets = await getAssets();
|
|
2944
2955
|
if (0 === assets.length) return logs;
|
|
2945
2956
|
logs.push(''), assets.sort((a, b)=>a.size - b.size);
|
|
2946
|
-
let
|
|
2957
|
+
let fileHeader = `File (${environmentName})`, maxFileLength = Math.max(...assets.map((a)=>(a.folder + __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.sep + a.name).length), fileHeader.length), maxSizeLength = Math.max(...assets.map((a)=>a.sizeLabel.length));
|
|
2947
2958
|
if (!1 !== options.detail) {
|
|
2948
2959
|
let showGzipHeader = !!(options.compressed && assets.some((item)=>null !== item.gzippedSize));
|
|
2949
|
-
logs.push(function(
|
|
2950
|
-
let
|
|
2951
|
-
|
|
2952
|
-
|
|
2960
|
+
logs.push(function(maxFileLength, maxSizeLength, fileHeader, showGzipHeader) {
|
|
2961
|
+
let lengths = [
|
|
2962
|
+
maxFileLength,
|
|
2963
|
+
maxSizeLength
|
|
2953
2964
|
], rowTypes = [
|
|
2954
|
-
|
|
2965
|
+
fileHeader,
|
|
2955
2966
|
'Size'
|
|
2956
2967
|
];
|
|
2957
2968
|
showGzipHeader && rowTypes.push('Gzip');
|
|
2958
2969
|
let headerRow = rowTypes.reduce((prev, cur, index)=>{
|
|
2959
|
-
let length =
|
|
2970
|
+
let length = lengths[index], curLabel = cur;
|
|
2960
2971
|
return length && (curLabel = cur.length < length ? cur + ' '.repeat(length - cur.length) : cur), `${prev + curLabel} `;
|
|
2961
2972
|
}, ' ');
|
|
2962
2973
|
return __WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.blue(headerRow);
|
|
2963
|
-
}(
|
|
2974
|
+
}(maxFileLength, maxSizeLength, fileHeader, showGzipHeader));
|
|
2964
2975
|
}
|
|
2965
2976
|
let totalSize = 0, totalGzipSize = 0;
|
|
2966
2977
|
for (let asset of assets){
|
|
2967
2978
|
let { sizeLabel } = asset, { name, folder, gzipSizeLabel } = asset, fileNameLength = (folder + __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.sep + name).length, sizeLength = sizeLabel.length;
|
|
2968
2979
|
if (totalSize += asset.size, options.compressed && (totalGzipSize += asset.gzippedSize ?? asset.size), !1 !== options.detail) {
|
|
2969
|
-
sizeLength <
|
|
2980
|
+
sizeLength < maxSizeLength && (sizeLabel += ' '.repeat(maxSizeLength - sizeLength));
|
|
2970
2981
|
let fileNameLabel = __WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.dim(asset.folder + __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.sep) + coloringAssetName(asset.name);
|
|
2971
|
-
fileNameLength <
|
|
2982
|
+
fileNameLength < maxFileLength && (fileNameLabel += ' '.repeat(maxFileLength - fileNameLength));
|
|
2972
2983
|
let log = ` ${fileNameLabel} ${sizeLabel}`;
|
|
2973
2984
|
gzipSizeLabel && (log += ` ${gzipSizeLabel}`), logs.push(log);
|
|
2974
2985
|
}
|
|
@@ -4174,7 +4185,7 @@ let resourceHints_generateLinks = (options, rel)=>options.map((option)=>({
|
|
|
4174
4185
|
}), stopProfiler = (output, profileSession)=>{
|
|
4175
4186
|
profileSession && profileSession.post('Profiler.stop', (error, param)=>{
|
|
4176
4187
|
if (error) {
|
|
4177
|
-
__WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error('Failed to generate
|
|
4188
|
+
__WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error('Failed to generate JavaScript CPU profile:', error);
|
|
4178
4189
|
return;
|
|
4179
4190
|
}
|
|
4180
4191
|
__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.default.writeFileSync(output, JSON.stringify(param.profile));
|
|
@@ -4187,9 +4198,9 @@ let resourceHints_generateLinks = (options, rel)=>options.map((option)=>({
|
|
|
4187
4198
|
if ('webpack' === api.context.bundlerType) return;
|
|
4188
4199
|
let RSPACK_PROFILE = null === (_process_env_RSPACK_PROFILE = process.env.RSPACK_PROFILE) || void 0 === _process_env_RSPACK_PROFILE ? void 0 : _process_env_RSPACK_PROFILE.toUpperCase();
|
|
4189
4200
|
if (!RSPACK_PROFILE) return;
|
|
4190
|
-
let timestamp = Date.now(), profileDirName = `rspack-profile-${timestamp}`, enableProfileTrace = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('TRACE'), enableCPUProfile = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('CPU'), enableLogging = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('LOGGING'), onStart = ()=>{
|
|
4201
|
+
let timestamp = Date.now(), profileDirName = `rspack-profile-${timestamp}`, enableProfileTrace = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('TRACE'), enableCPUProfile = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('CPU'), enableLogging = 'ALL' === RSPACK_PROFILE || RSPACK_PROFILE.includes('LOGGING'), onStart = async ()=>{
|
|
4191
4202
|
let profileDir = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(api.context.distPath, profileDirName), traceFilePath = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(profileDir, 'trace.json');
|
|
4192
|
-
|
|
4203
|
+
await isFileExists(profileDir) || await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.default.promises.mkdir(profileDir, {
|
|
4193
4204
|
recursive: !0
|
|
4194
4205
|
}), enableProfileTrace && __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.default.experiments.globalTrace.register('trace', 'chrome', traceFilePath), enableCPUProfile && ((profileSession = new __WEBPACK_EXTERNAL_MODULE_node_inspector_dd9822d6__.default.Session()).connect(), profileSession.post('Profiler.enable'), profileSession.post('Profiler.start'));
|
|
4195
4206
|
};
|
|
@@ -4203,12 +4214,12 @@ let resourceHints_generateLinks = (options, rel)=>options.map((option)=>({
|
|
|
4203
4214
|
logging: 'verbose',
|
|
4204
4215
|
loggingTrace: !0
|
|
4205
4216
|
});
|
|
4206
|
-
__WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.default.
|
|
4217
|
+
await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__.default.promises.writeFile(loggingFilePath, JSON.stringify(logging));
|
|
4207
4218
|
}
|
|
4208
4219
|
}), api.onExit(()=>{
|
|
4209
4220
|
enableProfileTrace && __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.default.experiments.globalTrace.cleanup();
|
|
4210
4221
|
let profileDir = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(api.context.distPath, profileDirName);
|
|
4211
|
-
stopProfiler(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(profileDir, 'jscpuprofile.json'), profileSession), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.info(`
|
|
4222
|
+
stopProfiler(__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(profileDir, 'jscpuprofile.json'), profileSession), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.info(`profile files saved to ${__WEBPACK_EXTERNAL_MODULE__compiled_picocolors_index_js_ea7a20e9__.default.cyan(profileDir)}`);
|
|
4212
4223
|
});
|
|
4213
4224
|
}
|
|
4214
4225
|
}), pluginServer = ()=>({
|
|
@@ -4616,7 +4627,6 @@ async function modifyRspackConfig(context, rspackConfig, chainUtils) {
|
|
|
4616
4627
|
async function getConfigUtils(config, chainUtils) {
|
|
4617
4628
|
return {
|
|
4618
4629
|
...chainUtils,
|
|
4619
|
-
rspack: __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack,
|
|
4620
4630
|
mergeConfig: dist.merge,
|
|
4621
4631
|
addRules (rules) {
|
|
4622
4632
|
let ruleArr = castArray(rules);
|
|
@@ -4640,9 +4650,11 @@ async function getConfigUtils(config, chainUtils) {
|
|
|
4640
4650
|
};
|
|
4641
4651
|
}
|
|
4642
4652
|
function getChainUtils(target, environment) {
|
|
4653
|
+
let nodeEnv = getNodeEnv();
|
|
4643
4654
|
return {
|
|
4655
|
+
rspack: __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack,
|
|
4644
4656
|
environment,
|
|
4645
|
-
env:
|
|
4657
|
+
env: nodeEnv,
|
|
4646
4658
|
target,
|
|
4647
4659
|
isDev: 'development' === environment.config.mode,
|
|
4648
4660
|
isProd: 'production' === environment.config.mode,
|
|
@@ -5262,14 +5274,18 @@ class SocketServer {
|
|
|
5262
5274
|
text: formattedErrors,
|
|
5263
5275
|
html: function(errors, root) {
|
|
5264
5276
|
let htmlItems = errors.map((item)=>{
|
|
5265
|
-
var text;
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5277
|
+
var text = server_ansiHTML(item ? item.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''') : ''), root1 = root;
|
|
5278
|
+
let pathRegex = /(?:\.\.?[\/\\]|[a-zA-Z]:\\|\/)[^:]*:\d+:\d+/g, urlRegex = /(https?:\/\/(?:[\w-]+\.)+[a-z0-9](?:[\w-.~:/?#[\]@!$&'*+,;=])*)/gi;
|
|
5279
|
+
return text.split('\n').map((line)=>{
|
|
5280
|
+
let replacedLine = line.replace(pathRegex, (file)=>{
|
|
5281
|
+
let hasClosingSpan = file.includes('</span>') && !file.includes('<span'), filePath = hasClosingSpan ? file.replace('</span>', '') : file, isAbsolute = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.isAbsolute(filePath), absolutePath = root1 && !isAbsolute ? __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.default.join(root1, filePath) : filePath, relativePath = root1 && isAbsolute ? function(base, filepath) {
|
|
5282
|
+
let relativePath = (0, __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.relative)(base, filepath);
|
|
5283
|
+
return '' === relativePath ? `.${__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.sep}` : relativePath.startsWith('.') ? relativePath : `.${__WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__.sep}${relativePath}`;
|
|
5284
|
+
}(root1, filePath) : filePath;
|
|
5285
|
+
return `<a class="file-link" data-file="${absolutePath}">${relativePath}</a>${hasClosingSpan ? '</span>' : ''}`;
|
|
5286
|
+
});
|
|
5287
|
+
return replacedLine.replace(urlRegex, (url)=>`<a class="url-link" href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`);
|
|
5288
|
+
}).join('\n');
|
|
5273
5289
|
});
|
|
5274
5290
|
return `
|
|
5275
5291
|
<style>
|
|
@@ -5321,9 +5337,9 @@ class SocketServer {
|
|
|
5321
5337
|
.content::-webkit-scrollbar {
|
|
5322
5338
|
display: none;
|
|
5323
5339
|
}
|
|
5324
|
-
.file-link
|
|
5340
|
+
.file-link,
|
|
5341
|
+
.url-link {
|
|
5325
5342
|
cursor: pointer;
|
|
5326
|
-
color: #6eecf7;
|
|
5327
5343
|
text-decoration: underline;
|
|
5328
5344
|
text-underline-offset: 3px;
|
|
5329
5345
|
&:hover {
|
|
@@ -5333,6 +5349,12 @@ class SocketServer {
|
|
|
5333
5349
|
opacity: 0.6;
|
|
5334
5350
|
}
|
|
5335
5351
|
}
|
|
5352
|
+
.file-link {
|
|
5353
|
+
color: #6eecf7;
|
|
5354
|
+
}
|
|
5355
|
+
.url-link {
|
|
5356
|
+
color: #eff986;
|
|
5357
|
+
}
|
|
5336
5358
|
.close {
|
|
5337
5359
|
position: absolute;
|
|
5338
5360
|
top: 27px;
|
|
@@ -6027,23 +6049,29 @@ let runner_run = async ({ bundlePath, ...runnerFactoryOptions })=>new BasicRunne
|
|
|
6027
6049
|
[entryName]: res
|
|
6028
6050
|
}), res;
|
|
6029
6051
|
};
|
|
6030
|
-
}, cleanupCallbacks = new Set(), handleTermination = async (
|
|
6052
|
+
}, cleanupCallbacks = new Set(), handleTermination = async (exitCode)=>{
|
|
6031
6053
|
try {
|
|
6032
6054
|
await Promise.all([
|
|
6033
6055
|
...cleanupCallbacks
|
|
6034
6056
|
].map((cb)=>cb()));
|
|
6035
6057
|
} finally{
|
|
6036
|
-
process.exitCode ??= exitCode
|
|
6058
|
+
process.exitCode ??= exitCode, process.exit();
|
|
6037
6059
|
}
|
|
6038
6060
|
}, registerCleanup = (callback)=>{
|
|
6039
6061
|
cleanupCallbacks.add(callback);
|
|
6040
6062
|
}, removeCleanup = (callback)=>{
|
|
6041
6063
|
cleanupCallbacks.delete(callback);
|
|
6042
6064
|
}, shutdownRefCount = 0, setupGracefulShutdown = ()=>{
|
|
6043
|
-
shutdownRefCount
|
|
6044
|
-
let
|
|
6045
|
-
|
|
6046
|
-
|
|
6065
|
+
shutdownRefCount++;
|
|
6066
|
+
let onSigterm = ()=>{
|
|
6067
|
+
handleTermination(__WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__.constants.signals.SIGTERM + 128);
|
|
6068
|
+
};
|
|
6069
|
+
process.once('SIGTERM', onSigterm);
|
|
6070
|
+
let isCI = 'true' === process.env.CI, onStdinEnd = ()=>{
|
|
6071
|
+
handleTermination(0);
|
|
6072
|
+
};
|
|
6073
|
+
return isCI || process.stdin.on('end', onStdinEnd), ()=>{
|
|
6074
|
+
!(--shutdownRefCount > 0) && (process.removeListener('SIGTERM', onSigterm), isCI || process.stdin.removeListener('end', onStdinEnd));
|
|
6047
6075
|
};
|
|
6048
6076
|
}, createHttpServer = async ({ serverConfig, middlewares })=>{
|
|
6049
6077
|
if (serverConfig.https) {
|
|
@@ -6804,9 +6832,21 @@ async function createRsbuild(options = {}) {
|
|
|
6804
6832
|
handler
|
|
6805
6833
|
});
|
|
6806
6834
|
}, onExitListened = !1, onExit = (cb)=>{
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6835
|
+
if (!onExitListened) {
|
|
6836
|
+
var onExit;
|
|
6837
|
+
onExit = (exitCode)=>{
|
|
6838
|
+
hooks.onExit.callBatch({
|
|
6839
|
+
exitCode
|
|
6840
|
+
});
|
|
6841
|
+
}, exitHook_callbacks.add(onExit), isRegistered || (isRegistered = !0, __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.default.on('SIGINT', ()=>{
|
|
6842
|
+
exit(__WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__.constants.signals.SIGINT + 128, 'SIGINT');
|
|
6843
|
+
}), __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.default.once('SIGTERM', ()=>{
|
|
6844
|
+
exit(__WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__.constants.signals.SIGTERM + 128, 'SIGTERM');
|
|
6845
|
+
}), __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__.default.once('exit', (exitCode)=>{
|
|
6846
|
+
exit(exitCode, 'exit');
|
|
6847
|
+
})), onExitListened = !0;
|
|
6848
|
+
}
|
|
6849
|
+
hooks.onExit.tap(cb);
|
|
6810
6850
|
};
|
|
6811
6851
|
return (environment)=>({
|
|
6812
6852
|
context: publicContext,
|
|
@@ -7276,11 +7316,11 @@ async function runCLI() {
|
|
|
7276
7316
|
}
|
|
7277
7317
|
process.title = 'rsbuild-node';
|
|
7278
7318
|
let { npm_execpath } = process.env;
|
|
7279
|
-
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rsbuild v1.3.
|
|
7319
|
+
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.greet(` Rsbuild v1.3.6\n`);
|
|
7280
7320
|
try {
|
|
7281
7321
|
!function() {
|
|
7282
7322
|
let cli = cac_dist('rsbuild');
|
|
7283
|
-
cli.help(), cli.version("1.3.
|
|
7323
|
+
cli.help(), cli.version("1.3.6"), applyCommonOptions(cli);
|
|
7284
7324
|
let devCommand = cli.command('', 'starting the dev server').alias('dev'), buildCommand = cli.command('build', 'build the app for production'), previewCommand = cli.command('preview', 'preview the production build locally'), inspectCommand = cli.command('inspect', 'inspect the Rspack and Rsbuild configs');
|
|
7285
7325
|
applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
|
|
7286
7326
|
try {
|
|
@@ -7331,6 +7371,6 @@ async function runCLI() {
|
|
|
7331
7371
|
__WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error('Failed to start Rsbuild CLI.'), __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger.error(err);
|
|
7332
7372
|
}
|
|
7333
7373
|
}
|
|
7334
|
-
let src_version = "1.3.
|
|
7374
|
+
let src_version = "1.3.6";
|
|
7335
7375
|
var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
|
|
7336
7376
|
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defineConfig, ensureAssetPrefix, config_loadConfig as loadConfig, loadEnv, mergeRsbuildConfig, runCLI, src_version as version, __webpack_exports__logger as logger, __webpack_exports__rspack as rspack };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import RspackChain from '../compiled/rspack-chain
|
|
1
|
+
import RspackChain from '../compiled/rspack-chain';
|
|
2
2
|
import type { InternalContext, ModifyBundlerChainUtils } from './types';
|
|
3
3
|
export declare function modifyBundlerChain(context: InternalContext, utils: ModifyBundlerChainUtils): Promise<RspackChain>;
|
|
4
4
|
export declare const CHAIN_ID: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import color from '../../compiled/picocolors/index.js';
|
|
2
|
-
import type RspackChain from '../../compiled/rspack-chain
|
|
2
|
+
import type RspackChain from '../../compiled/rspack-chain';
|
|
3
3
|
import type { FilenameConfig, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildTarget, Rspack } from '../types';
|
|
4
4
|
export * from './fs';
|
|
5
5
|
export * from './path';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
2
|
import type { SecureServerSessionOptions } from 'node:http2';
|
|
3
3
|
import type { ServerOptions as HttpsServerOptions } from 'node:https';
|
|
4
|
-
import type { Configuration, CopyRspackPluginOptions, Externals, LightningCssMinimizerRspackPluginOptions, ModuleFederationPluginOptions, RuleSetCondition, SwcJsMinimizerRspackPluginOptions, SwcLoaderOptions
|
|
4
|
+
import type { Configuration, CopyRspackPluginOptions, Externals, LightningCssMinimizerRspackPluginOptions, ModuleFederationPluginOptions, RuleSetCondition, SwcJsMinimizerRspackPluginOptions, SwcLoaderOptions } from '@rspack/core';
|
|
5
5
|
import type { ChokidarOptions } from '../../compiled/chokidar/index.js';
|
|
6
6
|
import type cors from '../../compiled/cors/index.js';
|
|
7
7
|
import type { Options as HttpProxyOptions, Filter as ProxyFilter } from '../../compiled/http-proxy-middleware/index.js';
|
|
8
|
-
import type RspackChain from '../../compiled/rspack-chain
|
|
8
|
+
import type RspackChain from '../../compiled/rspack-chain';
|
|
9
9
|
import type { FileDescriptor } from '../../compiled/rspack-manifest-plugin';
|
|
10
10
|
import type { BundleAnalyzerPlugin } from '../../compiled/webpack-bundle-analyzer/index.js';
|
|
11
11
|
import type { ModifyBundlerChainUtils, ModifyChainUtils, Routes } from './hooks';
|
|
@@ -33,7 +33,6 @@ export type ModifyRspackConfigUtils = ModifyChainUtils & {
|
|
|
33
33
|
appendPlugins: (plugins: BundlerPluginInstance | BundlerPluginInstance[]) => void;
|
|
34
34
|
removePlugin: (pluginName: string) => void;
|
|
35
35
|
mergeConfig: WebpackMerge;
|
|
36
|
-
rspack: typeof rspack;
|
|
37
36
|
};
|
|
38
37
|
export type ToolsRspackConfig = ConfigChainAsyncWithContext<Rspack.Configuration, ModifyRspackConfigUtils>;
|
|
39
38
|
export type ToolsWebpackConfig = ConfigChainWithContext<WebpackConfig, ModifyWebpackConfigUtils>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { rspack } from '@rspack/core';
|
|
1
2
|
import type { ChainIdentifier } from '..';
|
|
2
|
-
import type RspackChain from '../../compiled/rspack-chain
|
|
3
|
+
import type RspackChain from '../../compiled/rspack-chain';
|
|
3
4
|
import type { RsbuildDevServer } from '../server/devServer';
|
|
4
5
|
import type { EnvironmentConfig, HtmlBasicTag, MergedEnvironmentConfig, NormalizedEnvironmentConfig, RsbuildConfig } from './config';
|
|
5
6
|
import type { RsbuildEntry, RsbuildTarget } from './rsbuild';
|
|
@@ -66,7 +67,9 @@ export type OnAfterCreateCompilerFn<Compiler = Rspack.Compiler | Rspack.MultiCom
|
|
|
66
67
|
compiler: Compiler;
|
|
67
68
|
environments: Record<string, EnvironmentContext>;
|
|
68
69
|
}) => MaybePromise<void>;
|
|
69
|
-
export type OnExitFn = (
|
|
70
|
+
export type OnExitFn = (context: {
|
|
71
|
+
exitCode: number;
|
|
72
|
+
}) => void;
|
|
70
73
|
type HTMLTags = {
|
|
71
74
|
headTags: HtmlBasicTag[];
|
|
72
75
|
bodyTags: HtmlBasicTag[];
|
|
@@ -157,6 +160,7 @@ export type ModifyChainUtils = {
|
|
|
157
160
|
isWebWorker: boolean;
|
|
158
161
|
CHAIN_ID: ChainIdentifier;
|
|
159
162
|
environment: EnvironmentContext;
|
|
163
|
+
rspack: typeof rspack;
|
|
160
164
|
HtmlPlugin: typeof HtmlRspackPlugin;
|
|
161
165
|
};
|
|
162
166
|
interface PluginInstance {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RuleSetRule, Configuration as WebpackConfig, WebpackPluginInstance } from 'webpack';
|
|
2
|
-
import type RspackChain from '../../compiled/rspack-chain
|
|
2
|
+
import type RspackChain from '../../compiled/rspack-chain';
|
|
3
3
|
import type { ChainIdentifier } from '../configChain';
|
|
4
4
|
import type { ModifyRspackConfigUtils, NormalizedConfig, NormalizedEnvironmentConfig, RsbuildConfig, WebpackMerge } from './config';
|
|
5
5
|
import type { RsbuildContext } from './context';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Rspack from '@rspack/core';
|
|
2
|
-
import type RspackChain from '../../compiled/rspack-chain
|
|
2
|
+
import type RspackChain from '../../compiled/rspack-chain';
|
|
3
3
|
import type { TransformHandler } from './plugin';
|
|
4
4
|
export type { Rspack, RspackChain };
|
|
5
5
|
declare module '@rspack/core' {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CssExtractRspackLoaderOptions, CssExtractRspackPluginOptions } from '@rspack/core';
|
|
2
|
-
import type { AcceptedPlugin, ProcessOptions } from 'postcss';
|
|
3
2
|
import type { Configuration as WebpackConfig } from 'webpack';
|
|
4
3
|
import type HtmlRspackPlugin from '../../compiled/html-rspack-plugin/index.js';
|
|
4
|
+
import type { AcceptedPlugin, ProcessOptions } from '../../compiled/postcss';
|
|
5
5
|
import type { Rspack } from './rspack';
|
|
6
6
|
export type { HtmlRspackPlugin };
|
|
7
7
|
export interface CSSExtractOptions {
|
|
@@ -35,7 +35,7 @@ export type PostCSSLoaderOptions = {
|
|
|
35
35
|
*/
|
|
36
36
|
postcssOptions?: PostCSSOptions | ((loaderContext: Rspack.LoaderContext) => PostCSSOptions);
|
|
37
37
|
};
|
|
38
|
-
export type
|
|
38
|
+
export type PostCSSPlugin = AcceptedPlugin;
|
|
39
39
|
export type CSSLoaderModulesMode = 'local' | 'global' | 'pure' | 'icss' | ((resourcePath: string) => 'local' | 'global' | 'pure' | 'icss');
|
|
40
40
|
export type CSSLoaderExportLocalsConvention = 'asIs' | 'as-is' | 'camelCase' | 'camel-case' | 'camelCaseOnly' | 'camel-case-only' | 'dashes' | 'dashesOnly' | 'dashes-only' | ((name: string) => string);
|
|
41
41
|
export interface CSSLoaderModulesOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
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.3.
|
|
49
|
+
"@rspack/core": "1.3.4",
|
|
50
50
|
"@rspack/lite-tapable": "~1.0.1",
|
|
51
51
|
"@swc/helpers": "^0.5.15",
|
|
52
52
|
"core-js": "~3.41.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"cors": "^2.8.5",
|
|
69
69
|
"css-loader": "7.1.2",
|
|
70
70
|
"deepmerge": "^4.3.1",
|
|
71
|
-
"dotenv": "16.
|
|
71
|
+
"dotenv": "16.5.0",
|
|
72
72
|
"dotenv-expand": "12.0.1",
|
|
73
73
|
"html-rspack-plugin": "6.0.4",
|
|
74
74
|
"http-proxy-middleware": "^2.0.7",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"postcss": "^8.5.3",
|
|
81
81
|
"postcss-load-config": "6.0.1",
|
|
82
82
|
"postcss-loader": "8.1.1",
|
|
83
|
-
"prebundle": "1.
|
|
83
|
+
"prebundle": "1.3.3",
|
|
84
84
|
"reduce-configs": "^1.1.0",
|
|
85
85
|
"rsbuild-dev-middleware": "0.2.0",
|
|
86
86
|
"rslog": "^1.2.3",
|
|
87
|
-
"rspack-chain": "^1.2.
|
|
87
|
+
"rspack-chain": "^1.2.4",
|
|
88
88
|
"rspack-manifest-plugin": "5.0.3",
|
|
89
89
|
"sirv": "^3.0.1",
|
|
90
90
|
"style-loader": "3.3.4",
|
|
91
91
|
"tinyglobby": "^0.2.12",
|
|
92
|
-
"typescript": "^5.8.
|
|
92
|
+
"typescript": "^5.8.3",
|
|
93
93
|
"webpack": "^5.98.0",
|
|
94
94
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
95
95
|
"webpack-merge": "6.0.1",
|
package/types.d.ts
CHANGED
|
@@ -194,21 +194,21 @@ declare module '*.opus' {
|
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
|
-
* @requires [@rsbuild/plugin-yaml](https://
|
|
197
|
+
* @requires [@rsbuild/plugin-yaml](https://npmjs.com/package/@rsbuild/plugin-yaml)
|
|
198
198
|
*/
|
|
199
199
|
declare module '*.yaml' {
|
|
200
200
|
const content: Record<string, any>;
|
|
201
201
|
export default content;
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
|
-
* @requires [@rsbuild/plugin-yaml](https://
|
|
204
|
+
* @requires [@rsbuild/plugin-yaml](https://npmjs.com/package/@rsbuild/plugin-yaml)
|
|
205
205
|
*/
|
|
206
206
|
declare module '*.yml' {
|
|
207
207
|
const content: Record<string, any>;
|
|
208
208
|
export default content;
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
|
-
* @requires [@rsbuild/plugin-toml](https://
|
|
211
|
+
* @requires [@rsbuild/plugin-toml](https://npmjs.com/package/@rsbuild/plugin-toml)
|
|
212
212
|
*/
|
|
213
213
|
declare module '*.toml' {
|
|
214
214
|
const content: Record<string, any>;
|
|
@@ -262,35 +262,35 @@ declare module '*.module.css' {
|
|
|
262
262
|
export default classes;
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* @requires [@rsbuild/plugin-sass](https://
|
|
265
|
+
* @requires [@rsbuild/plugin-sass](https://npmjs.com/package/@rsbuild/plugin-sass)
|
|
266
266
|
*/
|
|
267
267
|
declare module '*.module.scss' {
|
|
268
268
|
const classes: CSSModuleClasses;
|
|
269
269
|
export default classes;
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
|
-
* @requires [@rsbuild/plugin-sass](https://
|
|
272
|
+
* @requires [@rsbuild/plugin-sass](https://npmjs.com/package/@rsbuild/plugin-sass)
|
|
273
273
|
*/
|
|
274
274
|
declare module '*.module.sass' {
|
|
275
275
|
const classes: CSSModuleClasses;
|
|
276
276
|
export default classes;
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
|
-
* @requires [@rsbuild/plugin-less](https://
|
|
279
|
+
* @requires [@rsbuild/plugin-less](https://npmjs.com/package/@rsbuild/plugin-less)
|
|
280
280
|
*/
|
|
281
281
|
declare module '*.module.less' {
|
|
282
282
|
const classes: CSSModuleClasses;
|
|
283
283
|
export default classes;
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
|
-
* @requires [@rsbuild/plugin-stylus](https://
|
|
286
|
+
* @requires [@rsbuild/plugin-stylus](https://npmjs.com/package/@rsbuild/plugin-stylus)
|
|
287
287
|
*/
|
|
288
288
|
declare module '*.module.styl' {
|
|
289
289
|
const classes: CSSModuleClasses;
|
|
290
290
|
export default classes;
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
|
-
* @requires [@rsbuild/plugin-stylus](https://
|
|
293
|
+
* @requires [@rsbuild/plugin-stylus](https://npmjs.com/package/@rsbuild/plugin-stylus)
|
|
294
294
|
*/
|
|
295
295
|
declare module '*.module.stylus' {
|
|
296
296
|
const classes: CSSModuleClasses;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export = any;
|