@rsbuild/core 1.3.0 → 1.3.1

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
@@ -1734,7 +1734,11 @@ for(var __webpack_i__ in (()=>{
1734
1734
  if (void 0 === configExport) {
1735
1735
  let { createJiti } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "jiti")), jiti = createJiti(constants_filename, {
1736
1736
  moduleCache: !1,
1737
- interopDefault: !0
1737
+ interopDefault: !0,
1738
+ nativeModules: [
1739
+ '@rspack/core',
1740
+ "typescript"
1741
+ ]
1738
1742
  });
1739
1743
  configExport = await jiti.import(configFilePath, {
1740
1744
  default: !0
@@ -2203,7 +2207,7 @@ for(var __webpack_i__ in (()=>{
2203
2207
  async function createContext(options, userConfig) {
2204
2208
  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;
2205
2209
  return {
2206
- version: "1.3.0",
2210
+ version: "1.3.1",
2207
2211
  rootPath,
2208
2212
  distPath: '',
2209
2213
  cachePath,
@@ -7404,11 +7408,11 @@ ${section.body}` : section.body).join("\n\n"));
7404
7408
  }
7405
7409
  process.title = 'rsbuild-node';
7406
7410
  let { npm_execpath } = process.env;
7407
- (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.0\n`);
7411
+ (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) && console.log(), rslog_index_js_namespaceObject.logger.greet(` Rsbuild v1.3.1\n`);
7408
7412
  try {
7409
7413
  !function() {
7410
7414
  let cli = cac_dist('rsbuild');
7411
- cli.help(), cli.version("1.3.0"), applyCommonOptions(cli);
7415
+ cli.help(), cli.version("1.3.1"), applyCommonOptions(cli);
7412
7416
  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');
7413
7417
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7414
7418
  try {
@@ -7459,7 +7463,7 @@ ${section.body}` : section.body).join("\n\n"));
7459
7463
  rslog_index_js_namespaceObject.logger.error('Failed to start Rsbuild CLI.'), rslog_index_js_namespaceObject.logger.error(err);
7460
7464
  }
7461
7465
  }
7462
- let src_rslib_entry_version = "1.3.0";
7466
+ let src_rslib_entry_version = "1.3.1";
7463
7467
  })(), 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 === [
7464
7468
  "PLUGIN_CSS_NAME",
7465
7469
  "PLUGIN_SWC_NAME",
package/dist/index.js CHANGED
@@ -1634,7 +1634,11 @@ async function config_loadConfig({ cwd = process.cwd(), path, envMode, meta, loa
1634
1634
  if (void 0 === configExport) {
1635
1635
  let { createJiti } = await import("jiti"), jiti = createJiti(constants_filename, {
1636
1636
  moduleCache: !1,
1637
- interopDefault: !0
1637
+ interopDefault: !0,
1638
+ nativeModules: [
1639
+ '@rspack/core',
1640
+ "typescript"
1641
+ ]
1638
1642
  });
1639
1643
  configExport = await jiti.import(configFilePath, {
1640
1644
  default: !0
@@ -2103,7 +2107,7 @@ async function updateEnvironmentContext(context, configs) {
2103
2107
  async function createContext(options, userConfig) {
2104
2108
  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;
2105
2109
  return {
2106
- version: "1.3.0",
2110
+ version: "1.3.1",
2107
2111
  rootPath,
2108
2112
  distPath: '',
2109
2113
  cachePath,
@@ -7278,11 +7282,11 @@ async function runCLI() {
7278
7282
  }
7279
7283
  process.title = 'rsbuild-node';
7280
7284
  let { npm_execpath } = process.env;
7281
- (!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.0\n`);
7285
+ (!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.1\n`);
7282
7286
  try {
7283
7287
  !function() {
7284
7288
  let cli = cac_dist('rsbuild');
7285
- cli.help(), cli.version("1.3.0"), applyCommonOptions(cli);
7289
+ cli.help(), cli.version("1.3.1"), applyCommonOptions(cli);
7286
7290
  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');
7287
7291
  applyServerOptions(devCommand), applyServerOptions(previewCommand), devCommand.action(async (options)=>{
7288
7292
  try {
@@ -7333,6 +7337,6 @@ async function runCLI() {
7333
7337
  __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);
7334
7338
  }
7335
7339
  }
7336
- let src_version = "1.3.0";
7340
+ let src_version = "1.3.1";
7337
7341
  var __webpack_exports__logger = __WEBPACK_EXTERNAL_MODULE__compiled_rslog_index_js_c302f6e3__.logger, __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rspack_core_e0096ff7__.rspack;
7338
7342
  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.0",
3
+ "version": "1.3.1",
4
4
  "description": "The Rspack-based build tool.",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "bugs": {
@@ -56,7 +56,7 @@
56
56
  "@rslib/core": "0.6.0",
57
57
  "@types/connect": "3.4.38",
58
58
  "@types/cors": "^2.8.17",
59
- "@types/node": "^22.13.11",
59
+ "@types/node": "^22.13.14",
60
60
  "@types/on-finished": "2.3.4",
61
61
  "@types/webpack-bundle-analyzer": "4.7.0",
62
62
  "@types/ws": "^8.18.0",