@nx/angular-rspack 22.2.0-beta.2 → 22.2.0-beta.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"browser-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/browser-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,CAoFxB"}
1
+ {"version":3,"file":"browser-config.d.ts","sourceRoot":"","sources":["../../../../src/lib/config/config-utils/browser-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,cAAc,CAAC;AAQtB,wBAAsB,gBAAgB,CACpC,iBAAiB,EAAE,oCAAoC,EACvD,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,aAAa,CAAC,CA6FxB"}
@@ -35,12 +35,21 @@ async function getBrowserConfig(normalizedOptions, i18n, hashFormat, defaultConf
35
35
  cssFilename: `[name]${hashFormat.file}.css`,
36
36
  filename: `[name]${hashFormat.chunk}.js`,
37
37
  chunkFilename: `[name]${hashFormat.chunk}.js`,
38
- scriptType: 'module',
39
- module: true,
40
- },
41
- experiments: {
42
- outputModule: true,
38
+ ...(isDevServer
39
+ ? {}
40
+ : {
41
+ scriptType: 'module',
42
+ module: true,
43
+ chunkFormat: 'module',
44
+ chunkLoading: 'import',
45
+ workerChunkLoading: 'import',
46
+ }),
43
47
  },
48
+ experiments: isDevServer
49
+ ? {}
50
+ : {
51
+ outputModule: true,
52
+ },
44
53
  resolve: {
45
54
  ...defaultConfig.resolve,
46
55
  mainFields: ['es2020', 'es2015', 'browser', 'module', 'main'],
@@ -202,12 +202,12 @@ class AngularRspackPlugin {
202
202
  }
203
203
  }
204
204
  });
205
- compiler.hooks.afterDone.tap(PLUGIN_NAME, (stats) => {
206
- (0, stats_1.rspackStatsLogger)(stats, (0, get_stats_options_1.getStatsOptions)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").verbose));
207
- if (stats.hasErrors()) {
208
- process.exit(1);
209
- }
210
- });
205
+ });
206
+ compiler.hooks.afterDone.tap(PLUGIN_NAME, (stats) => {
207
+ (0, stats_1.rspackStatsLogger)(stats, (0, get_stats_options_1.getStatsOptions)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").verbose));
208
+ if (stats.hasErrors()) {
209
+ process.exit(1);
210
+ }
211
211
  });
212
212
  compiler.hooks.normalModuleFactory.tap(PLUGIN_NAME, (normalModuleFactory) => {
213
213
  normalModuleFactory.hooks.beforeResolve.tap(PLUGIN_NAME, (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/angular-rspack",
3
- "version": "22.2.0-beta.2",
3
+ "version": "22.2.0-beta.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -48,8 +48,8 @@
48
48
  "@ampproject/remapping": "2.3.0",
49
49
  "@babel/core": "7.28.3",
50
50
  "@discoveryjs/json-ext": "0.6.3",
51
- "@nx/angular-rspack-compiler": "22.2.0-beta.2",
52
- "@nx/devkit": "22.2.0-beta.2",
51
+ "@nx/angular-rspack-compiler": "22.2.0-beta.3",
52
+ "@nx/devkit": "22.2.0-beta.3",
53
53
  "ansi-colors": "4.1.3",
54
54
  "autoprefixer": "10.4.21",
55
55
  "deepmerge": "^4.3.1",