@rsbuild/core 1.3.8 → 1.3.9

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 CHANGED
@@ -2218,7 +2218,7 @@ for(var __webpack_i__ in (()=>{
2218
2218
  async function createContext(options, userConfig) {
2219
2219
  let { cwd } = options, rootPath = userConfig.root ? getAbsolutePath(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;
2220
2220
  return {
2221
- version: "1.3.8",
2221
+ version: "1.3.9",
2222
2222
  rootPath,
2223
2223
  distPath: '',
2224
2224
  cachePath,
@@ -2781,7 +2781,8 @@ for(var __webpack_i__ in (()=>{
2781
2781
  }
2782
2782
  }), getCSSModulesLocalIdentName = (config, isProd)=>config.output.cssModules.localIdentName || (isProd ? '[local]-[hash:base64:6]' : '[path][name]__[local]-[hash:base64:6]'), getLightningCSSLoaderOptions = (config, targets, minify)=>{
2783
2783
  let userOptions = 'object' == typeof config.tools.lightningcssLoader ? config.tools.lightningcssLoader : {}, initialOptions = {
2784
- targets
2784
+ targets,
2785
+ errorRecovery: !0
2785
2786
  };
2786
2787
  return minify && (initialOptions.minify = !0), reduceConfigs({
2787
2788
  initial: initialOptions,
@@ -7417,11 +7418,11 @@ ${section.body}` : section.body).join("\n\n"));
7417
7418
  }
7418
7419
  process.title = 'rsbuild-node';
7419
7420
  let { npm_execpath } = process.env;
7420
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.8\n`);
7421
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.9\n`);
7421
7422
  try {
7422
7423
  !function() {
7423
7424
  let cli = cac_dist('rsbuild');
7424
- cli.help(), cli.version("1.3.8"), applyCommonOptions(cli);
7425
+ cli.help(), cli.version("1.3.9"), applyCommonOptions(cli);
7425
7426
  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');
7426
7427
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7427
7428
  try {
@@ -7472,7 +7473,7 @@ ${section.body}` : section.body).join("\n\n"));
7472
7473
  rslog_index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), rslog_index_js_namespaceObject.logger.error(err);
7473
7474
  }
7474
7475
  }
7475
- let src_version = "1.3.8";
7476
+ let src_version = "1.3.9";
7476
7477
  })(), exports.PLUGIN_CSS_NAME = __webpack_exports__.PLUGIN_CSS_NAME, exports.PLUGIN_SWC_NAME = __webpack_exports__.PLUGIN_SWC_NAME, exports.createRsbuild = __webpack_exports__.createRsbuild, 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 === [
7477
7478
  "PLUGIN_CSS_NAME",
7478
7479
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -2115,7 +2115,7 @@ async function updateEnvironmentContext(context, configs) {
2115
2115
  async function createContext(options, userConfig) {
2116
2116
  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;
2117
2117
  return {
2118
- version: "1.3.8",
2118
+ version: "1.3.9",
2119
2119
  rootPath,
2120
2120
  distPath: '',
2121
2121
  cachePath,
@@ -2677,7 +2677,8 @@ let pluginHelper_require = (0, __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__.
2677
2677
  }
2678
2678
  }), getCSSModulesLocalIdentName = (config, isProd)=>config.output.cssModules.localIdentName || (isProd ? '[local]-[hash:base64:6]' : '[path][name]__[local]-[hash:base64:6]'), getLightningCSSLoaderOptions = (config, targets, minify)=>{
2679
2679
  let userOptions = 'object' == typeof config.tools.lightningcssLoader ? config.tools.lightningcssLoader : {}, initialOptions = {
2680
- targets
2680
+ targets,
2681
+ errorRecovery: !0
2681
2682
  };
2682
2683
  return minify && (initialOptions.minify = !0), reduceConfigs({
2683
2684
  initial: initialOptions,
@@ -7290,11 +7291,11 @@ async function runCLI() {
7290
7291
  }
7291
7292
  process.title = 'rsbuild-node';
7292
7293
  let { npm_execpath } = process.env;
7293
- (!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.8\n`);
7294
+ (!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.9\n`);
7294
7295
  try {
7295
7296
  !function() {
7296
7297
  let cli = cac_dist('rsbuild');
7297
- cli.help(), cli.version("1.3.8"), applyCommonOptions(cli);
7298
+ cli.help(), cli.version("1.3.9"), applyCommonOptions(cli);
7298
7299
  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');
7299
7300
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7300
7301
  try {
@@ -7345,6 +7346,6 @@ async function runCLI() {
7345
7346
  __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);
7346
7347
  }
7347
7348
  }
7348
- let src_version = "1.3.8";
7349
+ let src_version = "1.3.9";
7349
7350
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
7350
7351
  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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/core",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {