Skip to content

Commit 682fde3

Browse files
committed
fix(nf) make index.js delegating to runtime esm to avoid CLI warning
1 parent 338167c commit 682fde3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

post-build.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ const nguniversal = fs.readFileSync('./libs/mf/src/nguniversal.ts', {
77
encoding: 'utf-8',
88
});
99
fs.writeFileSync('./dist/libs/mf/src/nguniversal.js', nguniversal);
10+
11+
const indexNf = fs.readFileSync('./libs/native-federation/src/index.ts', { encoding: 'utf-8' });
12+
fs.writeFileSync('./dist/libs/native-federation/src/index.js', indexNf);

update-local.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ call nx build native-federation-core
88
call nx build native-federation-runtime
99
call nx build native-federation-esbuild
1010

11+
call node post-build.js
12+
1113
call npm publish dist\libs\native-federation-core --registry http://localhost:4873
1214
call npm publish dist\libs\native-federation --registry http://localhost:4873
1315
call npm publish dist\libs\native-federation-runtime --registry http://localhost:4873

0 commit comments

Comments
 (0)