@nx/angular-rspack 21.2.0 → 21.4.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 (31) hide show
  1. package/LICENSE +18 -17
  2. package/README.md +66 -13
  3. package/README.md__tpl__ +50 -0
  4. package/dist/lib/config/create-config.d.ts.map +1 -1
  5. package/dist/lib/models/angular-rspack-plugin-options.d.ts +1 -0
  6. package/dist/lib/models/angular-rspack-plugin-options.d.ts.map +1 -1
  7. package/dist/lib/models/i18n.js +3 -1
  8. package/dist/lib/models/normalize-options.d.ts.map +1 -1
  9. package/dist/lib/models/normalize-options.js +4 -0
  10. package/dist/lib/plugins/angular-rspack-plugin.d.ts.map +1 -1
  11. package/dist/lib/plugins/angular-rspack-plugin.js +53 -53
  12. package/dist/lib/plugins/angular-ssr-dev-server.js +25 -22
  13. package/dist/lib/plugins/any-component-style-budget-checker-plugin.js +0 -1
  14. package/dist/lib/plugins/client/ssr-reload-client.js +0 -1
  15. package/dist/lib/plugins/i18n-inline-plugin.d.ts.map +1 -1
  16. package/dist/lib/plugins/i18n-inline-plugin.js +132 -125
  17. package/dist/lib/plugins/index-html-plugin.js +0 -2
  18. package/dist/lib/plugins/ng-rspack.js +0 -3
  19. package/dist/lib/plugins/prerender-plugin.d.ts.map +1 -1
  20. package/dist/lib/plugins/prerender-plugin.js +159 -162
  21. package/dist/lib/plugins/server/ssr-reload-server.js +8 -5
  22. package/dist/lib/plugins/stats-json-plugin.js +0 -1
  23. package/dist/lib/plugins/tools/render-worker.d.ts.map +1 -1
  24. package/dist/lib/plugins/tools/render-worker.js +3 -1
  25. package/dist/lib/plugins/tools/routes-extractor-worker.d.ts +1 -1
  26. package/dist/lib/plugins/tools/routes-extractor-worker.d.ts.map +1 -1
  27. package/dist/lib/plugins/tools/routes-extractor-worker.js +3 -1
  28. package/dist/lib/utils/spinner.js +7 -6
  29. package/dist/lib/utils/stats.d.ts.map +1 -1
  30. package/dist/lib/utils/stats.js +2 -1
  31. package/package.json +45 -16
package/LICENSE CHANGED
@@ -1,21 +1,22 @@
1
- MIT License
1
+ (The MIT License)
2
2
 
3
- Copyright (c) 2025 Colum Ferry
3
+ Copyright (c) 2017-2025 Narwhal Technologies Inc.
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
11
12
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
14
15
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,36 @@
1
- ![Nx](https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg)
2
- <div style="text-align: center;">
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
3
7
 
4
- # @nx/angular-rspack
8
+ <div style="text-align: center;">
5
9
 
6
- [![GitHub Actions](https://github.com/nrwl/angular-rspack/actions/workflows/ci.yml/badge.svg)](https://github.com/nrwl/angular-rspack/actions/workflows/ci.yml)
7
- ![License](https://img.shields.io/badge/License-MIT-blue)
8
- [![NPM Version](https://img.shields.io/npm/v/%40ng-rspack%2Fbuild?label=%40nx%2Fangular-rspack)](https://www.npmjs.com/package/@ng-rspack/build)
10
+ [![CircleCI](https://circleci.com/gh/nrwl/nx.svg?style=svg)](https://circleci.com/gh/nrwl/nx)
11
+ [![License](https://img.shields.io/npm/l/@nx/workspace.svg?style=flat-square)]()
12
+ [![NPM Version](https://badge.fury.io/js/nx.svg)](https://www.npmjs.com/package/nx)
13
+ [![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)]()
14
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
15
+ [![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
16
+ [![Join us on the Official Nx Discord Server](https://img.shields.io/discord/1143497901675401286?label=discord)](https://go.nx.dev/community)
9
17
 
10
18
  </div>
11
19
 
20
+
12
21
  <hr>
13
22
 
14
- # Build Angular with Rspack
23
+ # Nx: Smart Repos · Fast Builds
24
+
25
+ An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
26
+
27
+ ## Build Angular with Rspack
15
28
 
16
29
  The goal of `@nx/angular-rspack` is to make easy and straightforward to build Angular applications with [rspack](https://rspack.dev).
17
30
 
18
- ## Getting Started
31
+ ### Getting Started
19
32
 
20
- ### Step 1: Create a new Nx Workspace with Angular Rspack Application
33
+ #### Step 1: Create a new Nx Workspace with Angular Rspack Application
21
34
 
22
35
  ```bash
23
36
  npx create-nx-workspace myorg
@@ -36,21 +49,61 @@ NX Let's create a new workspace [[https://nx.dev/getting-started/intro](https:
36
49
  NX Creating your v20.8.0 workspace.
37
50
  ```
38
51
 
39
- ### Step 2: Run Build and Serve commands
52
+ #### Step 2: Run Build and Serve commands
40
53
 
41
54
  ```bash
42
55
  npx nx build myorg
43
56
  npx nx serve myorg
44
57
  ```
45
58
 
59
+ ## Getting Started
60
+
61
+ ### Creating an Nx Workspace
62
+
63
+ **Using `npx`**
64
+
65
+ ```bash
66
+ npx create-nx-workspace
67
+ ```
68
+
69
+ **Using `npm init`**
46
70
 
47
- ## Documentation and Resources
71
+ ```bash
72
+ npm init nx-workspace
73
+ ```
74
+
75
+ **Using `yarn create`**
76
+
77
+ ```bash
78
+ yarn create nx-workspace
79
+ ```
80
+
81
+ ### Adding Nx to an Existing Repository
82
+
83
+ Run:
84
+
85
+ ```bash
86
+ npx nx@latest init
87
+ ```
88
+
89
+ ## Documentation & Resources
48
90
 
49
- - [Read the Angular Rspack Documentation](https://nx.dev/recipes/angular/rspack/introduction)
50
91
  - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
51
92
  - [Intro to Nx](https://nx.dev/getting-started/intro)
52
93
  - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
53
94
  - [Blog Posts About Nx](https://nx.dev/blog)
54
95
 
55
96
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
56
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
97
+ width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
98
+
99
+
100
+ ## Documentation & Resources
101
+
102
+ - [Nx.Dev: Documentation, Guides, Tutorials](https://nx.dev)
103
+ - [Intro to Nx](https://nx.dev/getting-started/intro)
104
+ - [Official Nx YouTube Channel](https://www.youtube.com/@NxDevtools)
105
+ - [Blog Posts About Nx](https://nx.dev/blog)
106
+
107
+ <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
108
+ width="100%" alt="Nx - Smart Repos · Fast Builds"></a></p>
109
+
@@ -0,0 +1,50 @@
1
+ <p style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
+ <img alt="Nx - Smart Repos · Fast Builds" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
+ </picture>
6
+ </p>
7
+
8
+ {{links}}
9
+
10
+ <hr>
11
+
12
+ # Nx: Smart Repos · Fast Builds
13
+
14
+ An AI-first build platform that connects everything from your editor to CI. Helping you deliver fast, without breaking things.
15
+
16
+ ## Build Angular with Rspack
17
+
18
+ The goal of `@nx/angular-rspack` is to make easy and straightforward to build Angular applications with [rspack](https://rspack.dev).
19
+
20
+ ### Getting Started
21
+
22
+ #### Step 1: Create a new Nx Workspace with Angular Rspack Application
23
+
24
+ ```bash
25
+ npx create-nx-workspace myorg
26
+
27
+ NX Let's create a new workspace [[https://nx.dev/getting-started/intro](https://nx.dev/getting-started/intro)]
28
+ ✔ Which stack do you want to use? · angular
29
+ ✔ Integrated monorepo, or standalone project? · integrated
30
+ ✔ Application name · myorg
31
+ ✔ Which bundler would you like to use? · rspack
32
+ ✔ Default stylesheet format · css
33
+ ✔ Do you want to enable Server-Side Rendering (SSR)? · No
34
+ ✔ Which unit test runner would you like to use? · vitest
35
+ ✔ Test runner to use for end to end (E2E) tests · playwright
36
+ ✔ Which CI provider would you like to use? · skip
37
+ ✔ Would you like remote caching to make your build faster? · skip
38
+ NX Creating your v20.8.0 workspace.
39
+ ```
40
+
41
+ #### Step 2: Run Build and Serve commands
42
+
43
+ ```bash
44
+ npx nx build myorg
45
+ npx nx serve myorg
46
+ ```
47
+
48
+ {{content}}
49
+
50
+ {{resources}}
@@ -1 +1 @@
1
- {"version":3,"file":"create-config.d.ts","sourceRoot":"","sources":["../../../src/lib/config/create-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAc5D,wBAAsB,YAAY,CAChC,cAAc,EAAE;IACd,OAAO,EAAE,0BAA0B,CAAC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChD,EACD,cAAc,GAAE,MAAM,CACpB,MAAM,EACN;IACE,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChD,CACG,EACN,YAAY,SAAgB,GAC3B,OAAO,CAAC,aAAa,EAAE,CAAC,CAa1B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,0BAA0B,EACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAC7C,OAAO,CAAC,aAAa,EAAE,CAAC,CA8C1B"}
1
+ {"version":3,"file":"create-config.d.ts","sourceRoot":"","sources":["../../../src/lib/config/create-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAc5D,wBAAsB,YAAY,CAChC,cAAc,EAAE;IACd,OAAO,EAAE,0BAA0B,CAAC;IACpC,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChD,EACD,cAAc,GAAE,MAAM,CACpB,MAAM,EACN;IACE,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAC7C,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAChD,CACG,EACN,YAAY,SAAgB,GAC3B,OAAO,CAAC,aAAa,EAAE,CAAC,CAa1B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,0BAA0B,EACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAC7C,OAAO,CAAC,aAAa,EAAE,CAAC,CAwC1B"}
@@ -338,6 +338,7 @@ export interface NormalizedAngularRspackPluginOptions extends Omit<AngularRspack
338
338
  tsConfig: string;
339
339
  vendorChunk: boolean;
340
340
  watch: boolean;
341
+ zoneless: boolean;
341
342
  }
342
343
  export {};
343
344
  //# sourceMappingURL=angular-rspack-plugin-options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"angular-rspack-plugin-options.d.ts","sourceRoot":"","sources":["../../../src/lib/models/angular-rspack-plugin-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,MA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B,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;CAChB"}
1
+ {"version":3,"file":"angular-rspack-plugin-options.d.ts","sourceRoot":"","sources":["../../../src/lib/models/angular-rspack-plugin-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,SAAS,CAAC,EACN,OAAO,GACP;QACE,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACN;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IAC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AAU,CAAC;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,MAAM,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB"}
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Diagnostics = void 0;
4
4
  class Diagnostics {
5
- messages = [];
5
+ constructor() {
6
+ this.messages = [];
7
+ }
6
8
  get hasErrors() {
7
9
  return this.messages.some((m) => m.type === 'error');
8
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../src/lib/models/normalize-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAmBnE,OAAO,KAAK,EACV,0BAA0B,EAI1B,oCAAoC,EAIpC,6BAA6B,EAI9B,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,gBAAgB,EAAE,eAAe,EAAE,EACnC,IAAI,EAAE,MAAM,GACX,eAAe,EAAE,CAKnB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,EAAE,0BAA0B,CAAC,KAAK,CAAC,GACrC,OAAO,CAQT;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,0BAA0B,CAAC,KAAK,CAAC,QAmBjE;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,oCAAoC,CAAC,CAyL/C;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,0BAA0B,CAAC,cAAc,CAAC,GACvD,6BAA6B,CAiD/B"}
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../src/lib/models/normalize-options.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAmBnE,OAAO,KAAK,EACV,0BAA0B,EAI1B,oCAAoC,EAIpC,6BAA6B,EAI9B,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,gBAAgB,EAAE,eAAe,EAAE,EACnC,IAAI,EAAE,MAAM,GACX,eAAe,EAAE,CAKnB;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,EAAE,0BAA0B,CAAC,KAAK,CAAC,GACrC,OAAO,CAQT;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,0BAA0B,CAAC,KAAK,CAAC,QAmBjE;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,oCAAoC,CAAC,CA8L/C;AAED,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,0BAA0B,CAAC,cAAc,CAAC,GACvD,6BAA6B,CAiD/B"}
@@ -137,6 +137,9 @@ async function normalizeOptions(options) {
137
137
  ...budget,
138
138
  type: budget.type,
139
139
  }));
140
+ const zoneless = options.polyfills
141
+ ? !options.polyfills.includes('zone.js')
142
+ : true;
140
143
  const stylePreprocessorOptions = options.stylePreprocessorOptions ?? {};
141
144
  if (stylePreprocessorOptions.includePaths?.length) {
142
145
  stylePreprocessorOptions.includePaths = [
@@ -193,6 +196,7 @@ async function normalizeOptions(options) {
193
196
  vendorChunk: options.vendorChunk ?? false,
194
197
  verbose: options.verbose ?? false,
195
198
  watch: options.watch ?? false,
199
+ zoneless,
196
200
  };
197
201
  }
198
202
  function normalizeOptimization(optimization) {
@@ -1 +1 @@
1
- {"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAW5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;YA8PV,gBAAgB;CAgC/B"}
1
+ {"version":3,"file":"angular-rspack-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/angular-rspack-plugin.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,QAAQ,EAEb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,WAAW,EAGhB,KAAK,oCAAoC,EAC1C,MAAM,WAAW,CAAC;AAUnB,qBAAa,mBAAoB,YAAW,oBAAoB;;gBAS5D,OAAO,EAAE,oCAAoC,EAC7C,WAAW,CAAC,EAAE,WAAW;IAuB3B,KAAK,CAAC,QAAQ,EAAE,QAAQ;YA8PV,gBAAgB;CAgC/B"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
+ var _AngularRspackPlugin__options, _AngularRspackPlugin_i18n, _AngularRspackPlugin_sourceFileCache, _AngularRspackPlugin_javascriptTransformer, _AngularRspackPlugin_angularCompilation;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.AngularRspackPlugin = void 0;
5
+ const tslib_1 = require("tslib");
4
6
  const private_1 = require("@angular/build/private");
5
7
  const angular_rspack_compiler_1 = require("@nx/angular-rspack-compiler");
6
8
  const devkit_1 = require("@nx/devkit");
@@ -14,38 +16,36 @@ const stats_1 = require("../utils/stats");
14
16
  const get_stats_options_1 = require("../config/config-utils/get-stats-options");
15
17
  const PLUGIN_NAME = 'AngularRspackPlugin';
16
18
  class AngularRspackPlugin {
17
- #_options;
18
- #i18n;
19
- #sourceFileCache;
20
- #javascriptTransformer;
21
- // This will be defined in the apply method correctly
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-expect-error
24
- #angularCompilation;
25
19
  constructor(options, i18nOptions) {
26
- this.#_options = options;
27
- this.#i18n = i18nOptions;
28
- this.#sourceFileCache = new angular_rspack_compiler_1.SourceFileCache();
29
- this.#javascriptTransformer = new angular_rspack_compiler_1.JavaScriptTransformer({
20
+ _AngularRspackPlugin__options.set(this, void 0);
21
+ _AngularRspackPlugin_i18n.set(this, void 0);
22
+ _AngularRspackPlugin_sourceFileCache.set(this, void 0);
23
+ _AngularRspackPlugin_javascriptTransformer.set(this, void 0);
24
+ // This will be defined in the apply method correctly
25
+ _AngularRspackPlugin_angularCompilation.set(this, void 0);
26
+ tslib_1.__classPrivateFieldSet(this, _AngularRspackPlugin__options, options, "f");
27
+ tslib_1.__classPrivateFieldSet(this, _AngularRspackPlugin_i18n, i18nOptions, "f");
28
+ tslib_1.__classPrivateFieldSet(this, _AngularRspackPlugin_sourceFileCache, new angular_rspack_compiler_1.SourceFileCache(), "f");
29
+ tslib_1.__classPrivateFieldSet(this, _AngularRspackPlugin_javascriptTransformer, new angular_rspack_compiler_1.JavaScriptTransformer({
30
30
  /**
31
31
  * Matches https://github.com/angular/angular-cli/blob/33ed6e875e509ebbaa0cbdb57be9e932f9915dff/packages/angular/build/src/tools/esbuild/angular/compiler-plugin.ts#L89
32
32
  * where pluginOptions.sourcemap is set https://github.com/angular/angular-cli/blob/61d98fde122468978de9b17bd79761befdbf2fac/packages/angular/build/src/tools/esbuild/compiler-plugin-options.ts#L34
33
33
  */
34
- sourcemap: !!(this.#_options.sourceMap.scripts &&
35
- (this.#_options.sourceMap.hidden ? 'external' : true)),
36
- thirdPartySourcemaps: this.#_options.sourceMap.vendor,
37
- advancedOptimizations: this.#_options.advancedOptimizations,
38
- jit: !this.#_options.aot,
39
- }, (0, angular_rspack_compiler_1.maxWorkers)());
34
+ sourcemap: !!(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").sourceMap.scripts &&
35
+ (tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").sourceMap.hidden ? 'external' : true)),
36
+ thirdPartySourcemaps: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").sourceMap.vendor,
37
+ advancedOptimizations: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").advancedOptimizations,
38
+ jit: !tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").aot,
39
+ }, (0, angular_rspack_compiler_1.maxWorkers)()), "f");
40
40
  }
41
41
  apply(compiler) {
42
- const root = this.#_options.root;
42
+ const root = tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").root;
43
43
  // Both of these are exclusive to each other - only one of them can be used at a time
44
44
  // But they will happen before the compiler is created - so we can use them to set up the parallel compilation once
45
45
  compiler.hooks.beforeRun.tapAsync(PLUGIN_NAME, async (compiler, callback) => {
46
46
  await this.setupCompilation(root, compiler.options.resolve.tsConfig);
47
47
  compiler.hooks.beforeCompile.tapAsync(PLUGIN_NAME, async (params, callback) => {
48
- await (0, angular_rspack_compiler_1.buildAndAnalyze)(this.#angularCompilation, this.#sourceFileCache.typeScriptFileCache, this.#javascriptTransformer);
48
+ await (0, angular_rspack_compiler_1.buildAndAnalyze)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_angularCompilation, "f"), tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_sourceFileCache, "f").typeScriptFileCache, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_javascriptTransformer, "f"));
49
49
  callback();
50
50
  });
51
51
  callback();
@@ -57,13 +57,13 @@ class AngularRspackPlugin {
57
57
  ?.modifiedFiles
58
58
  ? new Set(compiler.watching.compiler.modifiedFiles)
59
59
  : new Set();
60
- if (this.#angularCompilation) {
61
- this.#sourceFileCache.invalidate(watchingModifiedFiles);
60
+ if (tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_angularCompilation, "f")) {
61
+ tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_sourceFileCache, "f").invalidate(watchingModifiedFiles);
62
62
  }
63
63
  await this.setupCompilation(root, compiler.options.resolve.tsConfig, watchingModifiedFiles.size > 0
64
64
  ? watchingModifiedFiles
65
65
  : undefined);
66
- await (0, angular_rspack_compiler_1.buildAndAnalyze)(this.#angularCompilation, this.#sourceFileCache.typeScriptFileCache, this.#javascriptTransformer);
66
+ await (0, angular_rspack_compiler_1.buildAndAnalyze)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_angularCompilation, "f"), tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_sourceFileCache, "f").typeScriptFileCache, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_javascriptTransformer, "f"));
67
67
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
68
68
  watchingModifiedFiles.forEach((file) => {
69
69
  compilation.fileDependencies.add(file);
@@ -91,14 +91,14 @@ class AngularRspackPlugin {
91
91
  }
92
92
  const originalSource = asset.source;
93
93
  let setLocaleContent = '';
94
- if (this.#i18n?.shouldInline) {
94
+ if (tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f")?.shouldInline) {
95
95
  // When inlining, a placeholder is used to allow the post-processing step to inject the $localize locale identifier.
96
96
  setLocaleContent +=
97
97
  '(globalThis.$localize ??= {}).locale = "___NG_LOCALE_INSERT___";\n';
98
98
  }
99
- else if (this.#i18n?.hasDefinedSourceLocale) {
99
+ else if (tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f")?.hasDefinedSourceLocale) {
100
100
  // If not inlining translations and source locale is defined, inject the locale specifier.
101
- setLocaleContent += `(globalThis.$localize ??= {}).locale = "${this.#i18n.sourceLocale}";\n`;
101
+ setLocaleContent += `(globalThis.$localize ??= {}).locale = "${tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f").sourceLocale}";\n`;
102
102
  }
103
103
  const concatLocaleSource = new core_1.sources.ConcatSource(setLocaleContent, originalSource);
104
104
  compilation.updateAsset(assetName, concatLocaleSource, (assetInfo) => assetInfo);
@@ -106,8 +106,8 @@ class AngularRspackPlugin {
106
106
  });
107
107
  });
108
108
  compiler.hooks.emit.tapAsync(PLUGIN_NAME, async (compilation, callback) => {
109
- if (!this.#_options.skipTypeChecking) {
110
- const { errors, warnings } = await this.#angularCompilation.diagnoseFiles(angular_rspack_compiler_1.DiagnosticModes.All);
109
+ if (!tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").skipTypeChecking) {
110
+ const { errors, warnings } = await tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_angularCompilation, "f").diagnoseFiles(angular_rspack_compiler_1.DiagnosticModes.All);
111
111
  for (const error of errors ?? []) {
112
112
  compilation.errors.push({
113
113
  name: PLUGIN_NAME,
@@ -129,12 +129,12 @@ class AngularRspackPlugin {
129
129
  });
130
130
  }
131
131
  }
132
- await this.#javascriptTransformer.close();
132
+ await tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_javascriptTransformer, "f").close();
133
133
  callback();
134
134
  });
135
135
  compiler.hooks.afterEmit.tap(PLUGIN_NAME, (compilation) => {
136
136
  // Check for budget errors and display them to the user.
137
- const budgets = this.#_options.budgets;
137
+ const budgets = tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").budgets;
138
138
  let budgetFailures;
139
139
  compiler.hooks.done.tap(PLUGIN_NAME, (statsValue) => {
140
140
  const stats = statsValue.toJson();
@@ -163,7 +163,7 @@ class AngularRspackPlugin {
163
163
  }
164
164
  });
165
165
  compiler.hooks.afterDone.tap(PLUGIN_NAME, (stats) => {
166
- (0, stats_1.rspackStatsLogger)(stats, (0, get_stats_options_1.getStatsOptions)(this.#_options.verbose));
166
+ (0, stats_1.rspackStatsLogger)(stats, (0, get_stats_options_1.getStatsOptions)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").verbose));
167
167
  if (stats.hasErrors()) {
168
168
  process.exit(1);
169
169
  }
@@ -179,29 +179,28 @@ class AngularRspackPlugin {
179
179
  });
180
180
  compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => {
181
181
  compilation[models_1.NG_RSPACK_SYMBOL_NAME] = () => ({
182
- javascriptTransformer: this
183
- .#javascriptTransformer,
184
- typescriptFileCache: this.#sourceFileCache.typeScriptFileCache,
185
- i18n: this.#i18n,
182
+ javascriptTransformer: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_javascriptTransformer, "f"),
183
+ typescriptFileCache: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_sourceFileCache, "f").typeScriptFileCache,
184
+ i18n: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f"),
186
185
  });
187
186
  });
188
- if (this.#_options.serviceWorker) {
187
+ if (tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").serviceWorker) {
189
188
  compiler.hooks.done.tapAsync(PLUGIN_NAME, async (compilation, callback) => {
190
- let providedLocales = this.#_options.localize;
189
+ let providedLocales = tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").localize;
191
190
  if (!providedLocales) {
192
- await (0, private_1.augmentAppWithServiceWorker)(this.#_options.root, devkit_1.workspaceRoot, this.#_options.outputPath.browser, this.#_options.baseHref ?? '/', this.#_options.ngswConfigPath);
191
+ await (0, private_1.augmentAppWithServiceWorker)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").root, devkit_1.workspaceRoot, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").outputPath.browser, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").baseHref ?? '/', tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").ngswConfigPath);
193
192
  }
194
- else if (providedLocales && this.#i18n) {
193
+ else if (providedLocales && tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f")) {
195
194
  if (typeof providedLocales === 'string') {
196
195
  providedLocales = [providedLocales];
197
196
  }
198
197
  else if (typeof providedLocales === 'boolean') {
199
- providedLocales = Array.from(this.#i18n.inlineLocales);
198
+ providedLocales = Array.from(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f").inlineLocales);
200
199
  }
201
200
  for (const locale of providedLocales) {
202
- await (0, private_1.augmentAppWithServiceWorker)(this.#_options.root, devkit_1.workspaceRoot, (0, node_path_1.join)(this.#_options.outputPath.browser, this.#i18n.locales[locale]?.subPath ?? locale), (0, get_locale_base_href_1.getLocaleBaseHref)(this.#i18n, locale, this.#_options.baseHref) ??
203
- this.#_options.baseHref ??
204
- '/', this.#_options.ngswConfigPath);
201
+ await (0, private_1.augmentAppWithServiceWorker)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").root, devkit_1.workspaceRoot, (0, node_path_1.join)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").outputPath.browser, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f").locales[locale]?.subPath ?? locale), (0, get_locale_base_href_1.getLocaleBaseHref)(tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_i18n, "f"), locale, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").baseHref) ??
202
+ tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").baseHref ??
203
+ '/', tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").ngswConfigPath);
205
204
  }
206
205
  }
207
206
  callback();
@@ -213,22 +212,23 @@ class AngularRspackPlugin {
213
212
  ? typeof tsConfig === 'string'
214
213
  ? tsConfig
215
214
  : tsConfig.configFile
216
- : this.#_options.tsConfig;
217
- this.#angularCompilation = await (0, angular_rspack_compiler_1.setupCompilationWithAngularCompilation)({
215
+ : tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").tsConfig;
216
+ tslib_1.__classPrivateFieldSet(this, _AngularRspackPlugin_angularCompilation, await (0, angular_rspack_compiler_1.setupCompilationWithAngularCompilation)({
218
217
  source: {
219
218
  tsconfigPath: tsconfigPath,
220
219
  },
221
220
  }, {
222
221
  root,
223
- aot: this.#_options.aot,
222
+ aot: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").aot,
224
223
  tsConfig: tsconfigPath,
225
- inlineStyleLanguage: this.#_options.inlineStyleLanguage,
226
- fileReplacements: this.#_options.fileReplacements,
227
- useTsProjectReferences: this.#_options.useTsProjectReferences,
228
- hasServer: this.#_options.hasServer,
229
- includePaths: this.#_options.stylePreprocessorOptions?.includePaths,
230
- sass: this.#_options.stylePreprocessorOptions?.sass,
231
- }, this.#sourceFileCache, this.#angularCompilation, modifiedFiles);
224
+ inlineStyleLanguage: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").inlineStyleLanguage,
225
+ fileReplacements: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").fileReplacements,
226
+ useTsProjectReferences: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").useTsProjectReferences,
227
+ hasServer: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").hasServer,
228
+ includePaths: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").stylePreprocessorOptions?.includePaths,
229
+ sass: tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin__options, "f").stylePreprocessorOptions?.sass,
230
+ }, tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_sourceFileCache, "f"), tslib_1.__classPrivateFieldGet(this, _AngularRspackPlugin_angularCompilation, "f"), modifiedFiles), "f");
232
231
  }
233
232
  }
234
233
  exports.AngularRspackPlugin = AngularRspackPlugin;
234
+ _AngularRspackPlugin__options = new WeakMap(), _AngularRspackPlugin_i18n = new WeakMap(), _AngularRspackPlugin_sourceFileCache = new WeakMap(), _AngularRspackPlugin_javascriptTransformer = new WeakMap(), _AngularRspackPlugin_angularCompilation = new WeakMap();
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
+ var _AngularSsrDevServer_instances, _AngularSsrDevServer_devServerProcess, _AngularSsrDevServer_wsServer, _AngularSsrDevServer_options, _AngularSsrDevServer_attachSSRReloadClient;
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.AngularSsrDevServer = void 0;
5
+ const tslib_1 = require("tslib");
4
6
  const core_1 = require("@rspack/core");
5
7
  const child_process_1 = require("child_process");
6
8
  const ssr_reload_server_1 = require("./server/ssr-reload-server");
@@ -10,12 +12,13 @@ const get_index_output_file_1 = require("../utils/index-file/get-index-output-fi
10
12
  const add_body_script_1 = require("../utils/index-file/add-body-script");
11
13
  const PLUGIN_NAME = 'AngularSsrDevServer';
12
14
  class AngularSsrDevServer {
13
- #devServerProcess;
14
- #wsServer;
15
- #options;
16
15
  constructor(options) {
17
- this.#wsServer = new ssr_reload_server_1.SsrReloadServer();
18
- this.#options = options;
16
+ _AngularSsrDevServer_instances.add(this);
17
+ _AngularSsrDevServer_devServerProcess.set(this, void 0);
18
+ _AngularSsrDevServer_wsServer.set(this, void 0);
19
+ _AngularSsrDevServer_options.set(this, void 0);
20
+ tslib_1.__classPrivateFieldSet(this, _AngularSsrDevServer_wsServer, new ssr_reload_server_1.SsrReloadServer(), "f");
21
+ tslib_1.__classPrivateFieldSet(this, _AngularSsrDevServer_options, options, "f");
19
22
  }
20
23
  apply(compiler) {
21
24
  compiler.hooks.entryOption.tap(PLUGIN_NAME, (context, entry) => {
@@ -27,33 +30,33 @@ class AngularSsrDevServer {
27
30
  });
28
31
  compiler.hooks.watchRun.tapAsync(PLUGIN_NAME, async (compiler, callback) => {
29
32
  compiler.hooks.afterEmit.tapAsync(PLUGIN_NAME, async (compilation, callback) => {
30
- await this.#attachSSRReloadClient(compilation);
31
- const serverPath = (0, node_path_1.join)(this.#options.outputPath.server, 'server.js');
32
- if (this.#devServerProcess) {
33
- this.#devServerProcess.kill();
34
- this.#devServerProcess = undefined;
33
+ await tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_instances, "m", _AngularSsrDevServer_attachSSRReloadClient).call(this, compilation);
34
+ const serverPath = (0, node_path_1.join)(tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_options, "f").outputPath.server, 'server.js');
35
+ if (tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_devServerProcess, "f")) {
36
+ tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_devServerProcess, "f").kill();
37
+ tslib_1.__classPrivateFieldSet(this, _AngularSsrDevServer_devServerProcess, undefined, "f");
35
38
  await new Promise((res) => setTimeout(res, 50));
36
39
  }
37
40
  if (!(0, node_fs_1.existsSync)(serverPath)) {
38
41
  await new Promise((res) => setTimeout(res, 50));
39
42
  }
40
- this.#devServerProcess = (0, child_process_1.fork)(serverPath);
41
- this.#devServerProcess.on('spawn', () => {
42
- this.#wsServer.sendReload();
43
+ tslib_1.__classPrivateFieldSet(this, _AngularSsrDevServer_devServerProcess, (0, child_process_1.fork)(serverPath), "f");
44
+ tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_devServerProcess, "f").on('spawn', () => {
45
+ tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_wsServer, "f").sendReload();
43
46
  });
44
47
  callback();
45
48
  });
46
49
  callback();
47
50
  });
48
51
  }
49
- async #attachSSRReloadClient(compilation) {
50
- const clientPath = require.resolve(`${__dirname}/client/ssr-reload-client.js`);
51
- const pathToIndex = (0, node_path_1.join)(this.#options.outputPath.browser, (0, get_index_output_file_1.getIndexOutputFile)(this.#options.index));
52
- const html = (0, node_fs_1.readFileSync)(pathToIndex, 'utf-8');
53
- const updatedHtml = await (0, add_body_script_1.addBodyScript)(html, (0, node_fs_1.readFileSync)(clientPath, 'utf-8'));
54
- const source = new core_1.sources.RawSource(updatedHtml);
55
- const relativePathToIndex = pathToIndex.replace(this.#options.outputPath.browser, '');
56
- compilation.emitAsset(relativePathToIndex, source);
57
- }
58
52
  }
59
53
  exports.AngularSsrDevServer = AngularSsrDevServer;
54
+ _AngularSsrDevServer_devServerProcess = new WeakMap(), _AngularSsrDevServer_wsServer = new WeakMap(), _AngularSsrDevServer_options = new WeakMap(), _AngularSsrDevServer_instances = new WeakSet(), _AngularSsrDevServer_attachSSRReloadClient = async function _AngularSsrDevServer_attachSSRReloadClient(compilation) {
55
+ const clientPath = require.resolve(`${__dirname}/client/ssr-reload-client.js`);
56
+ const pathToIndex = (0, node_path_1.join)(tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_options, "f").outputPath.browser, (0, get_index_output_file_1.getIndexOutputFile)(tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_options, "f").index));
57
+ const html = (0, node_fs_1.readFileSync)(pathToIndex, 'utf-8');
58
+ const updatedHtml = await (0, add_body_script_1.addBodyScript)(html, (0, node_fs_1.readFileSync)(clientPath, 'utf-8'));
59
+ const source = new core_1.sources.RawSource(updatedHtml);
60
+ const relativePathToIndex = pathToIndex.replace(tslib_1.__classPrivateFieldGet(this, _AngularSsrDevServer_options, "f").outputPath.browser, '');
61
+ compilation.emitAsset(relativePathToIndex, source);
62
+ };
@@ -20,7 +20,6 @@ const PLUGIN_NAME = 'AnyComponentStyleBudgetChecker';
20
20
  * budget is exceeded by a particular component's styles.
21
21
  */
22
22
  class AnyComponentStyleBudgetChecker {
23
- budgets;
24
23
  constructor(budgets) {
25
24
  this.budgets = budgets.filter((budget) => budget.type === private_1.BudgetType.AnyComponentStyle);
26
25
  }
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // @ts-expect-error: This is a client-side file
3
2
  const socket = new WebSocket(`ws://localhost:60000`);
4
3
  socket.addEventListener('message', (event) => {
@@ -1 +1 @@
1
- {"version":3,"file":"i18n-inline-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/i18n-inline-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAWnB,qBAAa,gBAAiB,YAAW,oBAAoB;;gBAWzD,aAAa,EAAE,oCAAoC,EACnD,WAAW,EAAE,WAAW;IAO1B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAsOzB"}
1
+ {"version":3,"file":"i18n-inline-plugin.d.ts","sourceRoot":"","sources":["../../../src/lib/plugins/i18n-inline-plugin.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EACV,WAAW,EACX,oCAAoC,EACrC,MAAM,WAAW,CAAC;AAWnB,qBAAa,gBAAiB,YAAW,oBAAoB;;gBAWzD,aAAa,EAAE,oCAAoC,EACnD,WAAW,EAAE,WAAW;IAO1B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CA4OzB"}