@meteorjs/rspack 0.0.62 → 0.0.63

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 +9 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
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
@@ -667,12 +667,15 @@ module.exports = async function (inMeteor = {}, argv = {}) {
667
667
  }
668
668
 
669
669
  // Establish Angular overrides to ensure proper integration
670
- const angularExpandConfig = isAngularEnabled ? {
671
- mode: isProd ? 'production' : 'development',
672
- devServer: { port: Meteor.devServerPort },
673
- stats: { preset: 'normal' },
674
- infrastructureLogging: { level: 'info' },
675
- } : {};
670
+ const angularExpandConfig = isAngularEnabled
671
+ ? {
672
+ mode: isProd ? "production" : "development",
673
+ devServer: { port: Meteor.devServerPort },
674
+ stats: { preset: "normal" },
675
+ infrastructureLogging: { level: "info" },
676
+ ...(isProd && isClient && { output: { module: false } }),
677
+ }
678
+ : {};
676
679
 
677
680
  const config = mergeSplitOverlap(
678
681
  isClient ? clientConfig : serverConfig,