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({
5050 return useInputSourcemap ? data : data . replace ( / ^ \/ \/ # s o u r c e M a p p i n g U R L = [ ^ \r \n ] * / gm, '' ) ;
5151 }
5252
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 .
5454 const safeAngularPackage =
5555 / [ \\ / ] 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 ) ;
5758
5859 // Lazy load the linker plugin only when linking is required
5960 if ( shouldLink ) {
You can’t perform that action at this time.
0 commit comments