File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @angular-architects/native-federation" ,
3- "version" : " 20.1.0 " ,
3+ "version" : " 20.1.2 " ,
44 "main" : " src/index.js" ,
55 "generators" : " ./collection.json" ,
66 "builders" : " ./builders.json" ,
Original file line number Diff line number Diff line change @@ -48,6 +48,29 @@ import { updateScriptTags } from '../../utils/updateIndexHtml';
4848import { federationBuildNotifier } from './federation-build-notifier' ;
4949import { NfBuilderSchema } from './schema' ;
5050
51+ const originalWrite = process . stderr . write . bind ( process . stderr ) ;
52+
53+ process . stderr . write = function (
54+ chunk : string | Uint8Array ,
55+ encodingOrCallback ?: BufferEncoding | ( ( err ?: Error ) => void ) ,
56+ callback ?: ( err ?: Error ) => void
57+ ) : boolean {
58+ const str = typeof chunk === 'string' ? chunk : chunk . toString ( ) ;
59+
60+ if (
61+ str . includes ( 'vite:import-analysis' ) &&
62+ str . includes ( 'es-module-shims.js' )
63+ ) {
64+ return true ;
65+ }
66+
67+ if ( typeof encodingOrCallback === 'function' ) {
68+ return originalWrite ( chunk , encodingOrCallback ) ;
69+ }
70+
71+ return originalWrite ( chunk , encodingOrCallback as BufferEncoding , callback ) ;
72+ } ;
73+
5174function _buildApplication ( options , context , pluginsOrExtensions ) {
5275 let extensions ;
5376 if ( pluginsOrExtensions && Array . isArray ( pluginsOrExtensions ) ) {
You can’t perform that action at this time.
0 commit comments