Commit dacc9fa
committed
fix(@angular/build): resolve Angular locale data namespace in esbuild
A transient error can occur during 'ng serve' when Vite's dependency pre-bundling is triggered for Angular locale data, showing an error like '[vite] (ssr) Error when evaluating SSR module...: There is a new version of the pre-bundle...'.
Previously, the 'angular:locale/data:' namespace was left unresolved by the build process for the dev server. This caused Vite to treat the namespace as a new dependency, triggering a pre-bundling step that led to the error.
With this change, esbuild now resolves the 'angular:locale/data:' namespace and replaces it with the direct module import path. While the module is still treated as an external dependency, providing the explicit path prevents Vite from unnecessarily triggering a new pre-bundling phase. This resolves the transient error.
Closes #314981 parent 44d9539 commit dacc9fa
File tree
4 files changed
+0
-78
lines changed- packages/angular/build/src
- builders/dev-server/vite
- tools
- esbuild
- vite/plugins
4 files changed
+0
-78
lines changedLines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
221 | 220 | | |
222 | 221 | | |
223 | 222 | | |
224 | | - | |
225 | 223 | | |
226 | 224 | | |
227 | 225 | | |
| |||
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
| |||
Lines changed: 0 additions & 64 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
0 commit comments