File tree Expand file tree Collapse file tree 8 files changed +18
-13
lines changed
native-federation-esbuild
native-federation-runtime Expand file tree Collapse file tree 8 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation" ,
3
- "version" : " 2.0.19 " ,
3
+ "version" : " 2.0.20 " ,
4
4
"type" : " commonjs" ,
5
5
"license" : " MIT" ,
6
6
"dependencies" : {
7
7
"json5" : " ^2.2.0" ,
8
8
"npmlog" : " ^6.0.2" ,
9
- "@softarc/native-federation-runtime" : " 2.0.19 "
9
+ "@softarc/native-federation-runtime" : " 2.0.20 "
10
10
}
11
11
}
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ export async function buildForFederation(
28
28
externals : string [ ] ,
29
29
buildParams = defaultBuildParams
30
30
) {
31
-
32
31
let artefactInfo : ArtefactInfo | undefined ;
33
32
34
33
if ( ! buildParams . skipMappingsAndExposed ) {
@@ -69,7 +68,7 @@ export async function buildForFederation(
69
68
fedOptions ,
70
69
'browser'
71
70
) ;
72
-
71
+
73
72
const separatePackageInfoServer = await bundleSeparate (
74
73
separateServer ,
75
74
externals ,
Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ export async function bundleShared(
132
132
logger . notice ( '' ) ;
133
133
134
134
logger . verbose ( e ) ;
135
+ throw e ;
135
136
}
136
137
137
138
const outFileNames = [ ...exptedResults ] ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation-esbuild" ,
3
- "version" : " 2.0.19 " ,
3
+ "version" : " 2.0.20 " ,
4
4
"type" : " commonjs" ,
5
5
"dependencies" : {
6
6
"@rollup/plugin-commonjs" : " ^22.0.2" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation-node" ,
3
- "version" : " 2.0.19 "
3
+ "version" : " 2.0.20 "
4
4
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation-runtime" ,
3
- "version" : " 2.0.19 " ,
3
+ "version" : " 2.0.20 " ,
4
4
"dependencies" : {
5
5
"tslib" : " ^2.3.0"
6
6
},
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/native-federation" ,
3
- "version" : " 19.0.6 " ,
3
+ "version" : " 19.0.8 " ,
4
4
"main" : " src/index.js" ,
5
5
"generators" : " ./collection.json" ,
6
6
"builders" : " ./builders.json" ,
20
20
},
21
21
"dependencies" : {
22
22
"@babel/core" : " ^7.19.0" ,
23
- "@softarc/native-federation" : " 2.0.19 " ,
24
- "@softarc/native-federation-runtime" : " 2.0.19 " ,
23
+ "@softarc/native-federation" : " 2.0.20 " ,
24
+ "@softarc/native-federation-runtime" : " 2.0.20 " ,
25
25
"@types/browser-sync" : " ^2.29.0" ,
26
26
"@chialab/esbuild-plugin-commonjs" : " ^0.18.0" ,
27
27
"browser-sync" : " ^3.0.2" ,
Original file line number Diff line number Diff line change @@ -491,9 +491,14 @@ function makeServerAsync(
491
491
`const port = process.env['PORT'] || ${ options . port || 4000 } `
492
492
)
493
493
. replace (
494
- ` server.set('view engine', 'html');` ,
495
- ` server.use(cors())\n server.set('view engine', 'html');`
496
- ) ;
494
+ `const app = express();` ,
495
+ `const app = express();\n app.set('view engine', 'html');`
496
+ )
497
+ . replace (
498
+ `if (isMainModule(import.meta.url)) {` ,
499
+ ``
500
+ )
501
+ . replace ( / \} (? ! [ \s \S ] * \} ) / , '' )
497
502
498
503
tree . create ( bootstrapName , updatedContent ) ;
499
504
You can’t perform that action at this time.
0 commit comments