@meteorjs/rspack 0.0.62 → 0.0.64

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 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteorjs/rspack",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
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
@@ -278,7 +278,6 @@ module.exports = async function (inMeteor = {}, argv = {}) {
278
278
  enabled === 'memory' ? undefined : cacheStrategy
279
279
  );
280
280
  Meteor.splitVendorChunk = () => splitVendorChunk();
281
- Meteor.createAngularConfig = () => createAngularConfig();
282
281
 
283
282
  // Add HtmlRspackPlugin function to Meteor
284
283
  Meteor.HtmlRspackPlugin = (options = {}) => {
@@ -667,12 +666,15 @@ module.exports = async function (inMeteor = {}, argv = {}) {
667
666
  }
668
667
 
669
668
  // 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
- } : {};
669
+ const angularExpandConfig = isAngularEnabled
670
+ ? {
671
+ mode: isProd ? "production" : "development",
672
+ devServer: { port: Meteor.devServerPort },
673
+ stats: { preset: "normal" },
674
+ infrastructureLogging: { level: "info" },
675
+ ...(isProd && isClient && { output: { module: false } }),
676
+ }
677
+ : {};
676
678
 
677
679
  const config = mergeSplitOverlap(
678
680
  isClient ? clientConfig : serverConfig,