@rsbuild/core 1.4.13 → 1.4.14
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/dist/index.cjs +15 -14
- package/dist/index.js +4 -4
- package/package.json +2 -3
package/dist/index.cjs
CHANGED
|
@@ -1204,17 +1204,17 @@ for(var __webpack_i__ in (()=>{
|
|
|
1204
1204
|
__webpack_require__.r(__webpack_exports__), __webpack_require__.d(__webpack_exports__, {
|
|
1205
1205
|
PLUGIN_CSS_NAME: ()=>PLUGIN_CSS_NAME,
|
|
1206
1206
|
createRsbuild: ()=>createRsbuild,
|
|
1207
|
-
loadEnv: ()=>loadEnv,
|
|
1208
1207
|
logger: ()=>index_js_namespaceObject.logger,
|
|
1209
1208
|
mergeRsbuildConfig: ()=>mergeRsbuildConfig,
|
|
1210
|
-
version: ()=>src_version,
|
|
1211
1209
|
loadConfig: ()=>loadConfig_loadConfig,
|
|
1212
1210
|
PLUGIN_SWC_NAME: ()=>PLUGIN_SWC_NAME,
|
|
1213
1211
|
defaultAllowedOrigins: ()=>defaultAllowedOrigins,
|
|
1214
1212
|
ensureAssetPrefix: ()=>ensureAssetPrefix,
|
|
1213
|
+
loadEnv: ()=>loadEnv,
|
|
1215
1214
|
rspack: ()=>rspack_rspack,
|
|
1216
1215
|
runCLI: ()=>runCLI,
|
|
1217
|
-
defineConfig: ()=>defineConfig
|
|
1216
|
+
defineConfig: ()=>defineConfig,
|
|
1217
|
+
version: ()=>src_version
|
|
1218
1218
|
});
|
|
1219
1219
|
var provider_helpers_namespaceObject = {};
|
|
1220
1220
|
__webpack_require__.r(provider_helpers_namespaceObject), __webpack_require__.d(provider_helpers_namespaceObject, {
|
|
@@ -3323,7 +3323,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
3323
3323
|
async function createContext(options, userConfig) {
|
|
3324
3324
|
let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = (0, external_node_path_namespaceObject.join)(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
|
|
3325
3325
|
return {
|
|
3326
|
-
version: "1.4.
|
|
3326
|
+
version: "1.4.14",
|
|
3327
3327
|
rootPath,
|
|
3328
3328
|
distPath: '',
|
|
3329
3329
|
cachePath,
|
|
@@ -8616,13 +8616,14 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
|
|
|
8616
8616
|
});
|
|
8617
8617
|
}
|
|
8618
8618
|
constructor(){
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8619
|
+
!function(obj, key, value) {
|
|
8620
|
+
key in obj ? Object.defineProperty(obj, key, {
|
|
8621
|
+
value: value,
|
|
8622
|
+
enumerable: !0,
|
|
8623
|
+
configurable: !0,
|
|
8624
|
+
writable: !0
|
|
8625
|
+
}) : obj[key] = value;
|
|
8626
|
+
}(this, "name", pluginName);
|
|
8626
8627
|
}
|
|
8627
8628
|
});
|
|
8628
8629
|
});
|
|
@@ -9035,11 +9036,11 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
|
|
|
9035
9036
|
].includes(level) && (index_js_namespaceObject.logger.level = level);
|
|
9036
9037
|
}
|
|
9037
9038
|
let { npm_execpath } = process.env;
|
|
9038
|
-
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && index_js_namespaceObject.logger.log(), index_js_namespaceObject.logger.greet(` Rsbuild v1.4.
|
|
9039
|
+
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && index_js_namespaceObject.logger.log(), index_js_namespaceObject.logger.greet(` Rsbuild v1.4.14\n`);
|
|
9039
9040
|
try {
|
|
9040
9041
|
!function() {
|
|
9041
9042
|
let cli = ((name = "")=>new CAC(name))('rsbuild');
|
|
9042
|
-
cli.help(), cli.version("1.4.
|
|
9043
|
+
cli.help(), cli.version("1.4.14"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
|
|
9043
9044
|
default: 'jiti'
|
|
9044
9045
|
}).option('-r, --root <root>', 'specify the project root directory, can be an absolute path or a path relative to cwd').option('-m, --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('--log-level <level>', 'specify the log level, can be `info`, `warn`, `error` or `silent`').option('--env-mode <mode>', 'specify the env mode to load the `.env.[mode]` file').option('--environment <name>', 'specify the name of environment to build', {
|
|
9045
9046
|
type: [
|
|
@@ -9097,7 +9098,7 @@ throw new Error('Failed to load Node.js addon: "${name}"\\n' + error);
|
|
|
9097
9098
|
index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), index_js_namespaceObject.logger.error(err);
|
|
9098
9099
|
}
|
|
9099
9100
|
}
|
|
9100
|
-
let src_version = "1.4.
|
|
9101
|
+
let src_version = "1.4.14";
|
|
9101
9102
|
})(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, exports.defaultAllowedOrigins = __webpack_exports__.defaultAllowedOrigins, exports.defineConfig = __webpack_exports__.defineConfig, exports.ensureAssetPrefix = __webpack_exports__.ensureAssetPrefix, exports.loadConfig = __webpack_exports__.loadConfig, exports.loadEnv = __webpack_exports__.loadEnv, exports.logger = __webpack_exports__.logger, exports.mergeRsbuildConfig = __webpack_exports__.mergeRsbuildConfig, exports.rspack = __webpack_exports__.rspack, exports.runCLI = __webpack_exports__.runCLI, exports.version = __webpack_exports__.version, __webpack_exports__)-1 === [
|
|
9102
9103
|
"PLUGIN_CSS_NAME",
|
|
9103
9104
|
"PLUGIN_SWC_NAME",
|
package/dist/index.js
CHANGED
|
@@ -3126,7 +3126,7 @@ async function updateEnvironmentContext(context, configs) {
|
|
|
3126
3126
|
async function createContext(options, userConfig) {
|
|
3127
3127
|
let { cwd } = options, rootPath = userConfig.root ? ensureAbsolutePath(cwd, userConfig.root) : cwd, rsbuildConfig = await withDefaultConfig(rootPath, userConfig), cachePath = join(rootPath, 'node_modules', '.cache'), specifiedEnvironments = options.environment && options.environment.length > 0 ? options.environment : void 0, bundlerType = userConfig.provider ? 'webpack' : 'rspack';
|
|
3128
3128
|
return {
|
|
3129
|
-
version: "1.4.
|
|
3129
|
+
version: "1.4.14",
|
|
3130
3130
|
rootPath,
|
|
3131
3131
|
distPath: '',
|
|
3132
3132
|
cachePath,
|
|
@@ -8809,11 +8809,11 @@ async function runCLI() {
|
|
|
8809
8809
|
].includes(level) && (logger.level = level);
|
|
8810
8810
|
}
|
|
8811
8811
|
let { npm_execpath } = process.env;
|
|
8812
|
-
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && logger.log(), logger.greet(` Rsbuild v1.4.
|
|
8812
|
+
(!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && logger.log(), logger.greet(` Rsbuild v1.4.14\n`);
|
|
8813
8813
|
try {
|
|
8814
8814
|
!function() {
|
|
8815
8815
|
let cli = ((name = "")=>new CAC(name))('rsbuild');
|
|
8816
|
-
cli.help(), cli.version("1.4.
|
|
8816
|
+
cli.help(), cli.version("1.4.14"), cli.option('--base <base>', 'specify the base path of the server').option('-c, --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--config-loader <loader>', 'specify the loader to load the config file, can be `jiti` or `native`', {
|
|
8817
8817
|
default: 'jiti'
|
|
8818
8818
|
}).option('-r, --root <root>', 'specify the project root directory, can be an absolute path or a path relative to cwd').option('-m, --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('--log-level <level>', 'specify the log level, can be `info`, `warn`, `error` or `silent`').option('--env-mode <mode>', 'specify the env mode to load the `.env.[mode]` file').option('--environment <name>', 'specify the name of environment to build', {
|
|
8819
8819
|
type: [
|
|
@@ -8871,5 +8871,5 @@ async function runCLI() {
|
|
|
8871
8871
|
logger.error('Failed to start Rsbuild CLI.'), logger.error(err);
|
|
8872
8872
|
}
|
|
8873
8873
|
}
|
|
8874
|
-
let src_version = "1.4.
|
|
8874
|
+
let src_version = "1.4.14";
|
|
8875
8875
|
export { PLUGIN_CSS_NAME, PLUGIN_SWC_NAME, createRsbuild, defaultAllowedOrigins, defineConfig, ensureAssetPrefix, loadConfig_loadConfig as loadConfig, loadEnv, logger, mergeRsbuildConfig, rspack_rspack as rspack, runCLI, src_version as version };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.14",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"jiti": "^2.5.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@rslib/core": "0.11.
|
|
56
|
+
"@rslib/core": "0.11.1",
|
|
57
57
|
"@types/connect": "3.4.38",
|
|
58
58
|
"@types/cors": "^2.8.19",
|
|
59
59
|
"@types/node": "^22.17.0",
|
|
@@ -98,7 +98,6 @@
|
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public",
|
|
101
|
-
"provenance": true,
|
|
102
101
|
"registry": "https://registry.npmjs.org/"
|
|
103
102
|
},
|
|
104
103
|
"scripts": {
|