File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/angular_devkit/build_angular/src/tools/esbuild Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,11 @@ async function transformWithBabel({
50
50
return useInputSourcemap ? data : data . replace ( / ^ \/ \/ # s o u r c e M a p p i n g U R L = [ ^ \r \n ] * / gm, '' ) ;
51
51
}
52
52
53
- // @angular /platform-server/init entry-point has side-effects .
53
+ // ` @angular/platform-server/init` and `@angular/common/locales/global` entry-points are side effectful .
54
54
const safeAngularPackage =
55
55
/ [ \\ / ] n o d e _ m o d u l e s [ \\ / ] @ a n g u l a r [ \\ / ] / . test ( filename ) &&
56
- ! / @ a n g u l a r [ \\ / ] p l a t f o r m - s e r v e r [ \\ / ] f ? e s m 2 0 2 2 [ \\ / ] i n i t / . test ( filename ) ;
56
+ ! / @ a n g u l a r [ \\ / ] p l a t f o r m - s e r v e r [ \\ / ] f ? e s m 2 0 2 2 [ \\ / ] i n i t / . test ( filename ) &&
57
+ ! / @ a n g u l a r [ \\ / ] c o m m o n [ \\ / ] l o c a l e s [ \\ / ] g l o b a l / . test ( filename ) ;
57
58
58
59
// Lazy load the linker plugin only when linking is required
59
60
if ( shouldLink ) {
You can’t perform that action at this time.
0 commit comments