@meteorjs/rspack 1.1.0-beta.8 → 1.1.0-beta.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rspack.config.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "1.1.0-beta.8",
3
+ "version": "1.1.0-beta.9",
4
4
  "description": "Configuration logic for using Rspack in Meteor projects",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
package/rspack.config.js CHANGED
@@ -227,6 +227,7 @@ module.exports = async function (inMeteor = {}, argv = {}) {
227
227
  const isTestLike = !!Meteor.isTestLike;
228
228
  const swcExternalHelpers = !!Meteor.swcExternalHelpers;
229
229
  const isNative = !!Meteor.isNative;
230
+ const isProfile = !!Meteor.isProfile;
230
231
  const mode = isProd ? 'production' : 'development';
231
232
  const projectDir = process.cwd();
232
233
  const projectConfigPath = Meteor.projectConfigPath || path.resolve(projectDir, 'rspack.config.js');
@@ -429,7 +430,9 @@ module.exports = async function (inMeteor = {}, argv = {}) {
429
430
  : [];
430
431
  // Not supported in Meteor yet (Rspack 1.7+ is enabled by default)
431
432
  const lazyCompilationConfig = { lazyCompilation: false };
432
- const loggingConfig = { stats: 'none', infrastructureLogging: { level: "none" } };
433
+ const loggingConfig = isProfile
434
+ ? {}
435
+ : { stats: 'none', infrastructureLogging: { level: 'none' } };
433
436
 
434
437
  const clientEntry =
435
438
  isClient && isTest && isTestEager && isTestFullApp