@meteorjs/rspack 0.3.55 → 0.3.56

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 +15 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.3.55",
3
+ "version": "0.3.56",
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
@@ -709,10 +709,10 @@ module.exports = async function (inMeteor = {}, argv = {}) {
709
709
  }
710
710
 
711
711
  const nextUserConfig = await loadAndProcessConfig(
712
- projectConfigPathToUse,
713
- 'rspack.config.js',
714
- Meteor,
715
- argv,
712
+ projectConfigPathToUse,
713
+ 'rspack.config.js',
714
+ Meteor,
715
+ argv,
716
716
  isAngularEnabled
717
717
  );
718
718
 
@@ -776,8 +776,8 @@ module.exports = async function (inMeteor = {}, argv = {}) {
776
776
  const nextOverrideConfig = await loadAndProcessConfig(
777
777
  overrideConfigPath,
778
778
  configNameFull,
779
- Meteor,
780
- argv,
779
+ Meteor,
780
+ argv,
781
781
  isAngularEnabled
782
782
  );
783
783
 
@@ -798,5 +798,14 @@ module.exports = async function (inMeteor = {}, argv = {}) {
798
798
  console.log('Config:', inspect(config, { depth: null, colors: true }));
799
799
  }
800
800
 
801
+ // Check if lazyCompilation is enabled and warn the user
802
+ if (config.lazyCompilation === true || typeof config.lazyCompilation === 'object') {
803
+ console.warn(
804
+ '\n⚠️ Warning: lazyCompilation may not work correctly in the current Meteor-Rspack integration.\n' +
805
+ ' This feature will be evaluated for support in future Meteor versions.\n' +
806
+ ' If you encounter any issues, please disable it in your rspack config.\n',
807
+ );
808
+ }
809
+
801
810
  return [config];
802
811
  }