-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit d749ba6
fix(@angular/build): allow direct bundling of TSX files with application builder
When using the application builder with `isolatedModules`, the bundler will
directly handle TypeScript transpilation and bundling. Previously, any input
TSX files were loaded by the bundler as TS files. This difference caused errors
when attempting to process the files since the syntax differs between TSX and TS.
The appropriate loader will now be used if the input file is TSX in this situation.
(cherry picked from commit 13b65df)1 parent b91c82d commit d749ba6
File tree
2 files changed
+42
-1
lines changed- packages/angular/build/src
- builders/application/tests/behavior
- tools/esbuild/angular
2 files changed
+42
-1
lines changedpackages/angular/build/src/builders/application/tests/behavior/typescript-isolated-modules_spec.ts
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
47 | 47 |
| |
48 | 48 |
| |
49 | 49 |
| |
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | ||
71 | + | ||
72 | + | ||
73 | + | ||
74 | + | ||
75 | + | ||
76 | + | ||
77 | + | ||
50 | 78 |
| |
51 | 79 |
|
Lines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | + | ||
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| |||
409 | 410 |
| |
410 | 411 |
| |
411 | 412 |
| |
413 | + | ||
414 | + | ||
415 | + | ||
416 | + | ||
417 | + | ||
418 | + | ||
419 | + | ||
420 | + | ||
421 | + | ||
422 | + | ||
423 | + | ||
424 | + | ||
412 | 425 |
| |
413 | 426 |
| |
414 | - | ||
427 | + | ||
415 | 428 |
| |
416 | 429 |
| |
417 | 430 |
| |
|
0 commit comments