File tree Expand file tree Collapse file tree 12 files changed +22
-19
lines changed
native-federation-esbuild
native-federation-runtime Expand file tree Collapse file tree 12 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation" ,
3
- "version" : " 1.0.0-beta.2 " ,
3
+ "version" : " 1.0.0-beta.3 " ,
4
4
"type" : " commonjs" ,
5
5
"dependencies" : {
6
6
"json5" : " ^2.2.0" ,
7
7
"npmlog" : " ^6.0.2" ,
8
- "@softarc/native-federation-runtime" : " 1.0.0-beta.2 "
8
+ "@softarc/native-federation-runtime" : " 1.0.0-beta.3 "
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export async function bundleExposed(
56
56
} ) ;
57
57
} catch ( e ) {
58
58
logger . error ( 'Error bundling exposed module ' + entryPoint ) ;
59
+ logger . notice ( 'Please check the `exposes` section in your federation.config.js' ) ;
59
60
logger . error ( e ) ;
60
61
}
61
62
}
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ export async function bundleSharedMappings(
54
54
} ,
55
55
} ) ;
56
56
} catch ( e ) {
57
- // TODO: add logger
58
57
logger . error ( 'Error bundling shared mapping ' + m . key ) ;
58
+ logger . notice (
59
+ `Please check this shared mapping in the 'path' section or your tsconfig.(app|base).json`
60
+ ) ;
59
61
logger . notice (
60
62
`If you don't need this mapping to shared, you can skip it in your federation.config.js`
61
63
) ;
Original file line number Diff line number Diff line change @@ -51,11 +51,12 @@ export async function bundleShared(
51
51
const cachedFile = path . join ( cachePath , outFileName ) ;
52
52
53
53
if ( ! fs . existsSync ( cachedFile ) ) {
54
-
55
54
if ( first ) {
56
55
logger . notice ( 'Preparing shared npm packages' ) ;
57
56
logger . notice ( 'This only needs to be done once' ) ;
58
- logger . notice ( 'Skip packages you don\'t want to share in your federation config' ) ;
57
+ logger . notice (
58
+ "Skip packages you don't want to share in your federation config"
59
+ ) ;
59
60
}
60
61
first = false ;
61
62
@@ -73,7 +74,7 @@ export async function bundleShared(
73
74
kind : 'shared-package' ,
74
75
} ) ;
75
76
} catch ( e ) {
76
- logger . error ( 'Error bundling ' + pi . packageName ) ;
77
+ logger . error ( 'Error bundling npm package ' + pi . packageName ) ;
77
78
if ( e instanceof Error ) {
78
79
logger . error ( e . message ) ;
79
80
}
Original file line number Diff line number Diff line change 1
- import { SharedInfo } from '@softarc/native-federation' ;
2
1
import { NormalizedFederationConfig } from '../config/federation-config' ;
3
2
import { BuildAdapter , setBuildAdapter } from './build-adapter' ;
4
3
import {
5
4
buildForFederation ,
6
- BuildParams ,
7
5
defaultBuildParams ,
8
6
} from './build-for-federation' ;
9
- import { bundleShared } from './bundle-shared' ;
10
7
import { FederationOptions } from './federation-options' ;
11
8
import { getExternals } from './get-externals' ;
12
9
import { loadFederationConfig } from './load-federation-config' ;
Original file line number Diff line number Diff line change @@ -5,4 +5,5 @@ export interface FederationOptions {
5
5
tsConfig ?: string ;
6
6
verbose ?: boolean ;
7
7
dev ?: boolean ;
8
+ watch ?: boolean ;
8
9
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @softarc/native-federation-esbuild" ,
3
- "version" : " 1.0.0-beta.2 " ,
3
+ "version" : " 1.0.0-beta.3 " ,
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-runtime" ,
3
- "version" : " 1.0.0-beta.2 " ,
3
+ "version" : " 1.0.0-beta.3 " ,
4
4
"peerDependencies" : {},
5
5
"dependencies" : {
6
6
"tslib" : " ^2.3.0"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @angular-architects/native-federation" ,
3
- "version" : " 0.9.3 " ,
3
+ "version" : " 0.9.4 " ,
4
4
"main" : " src/index.js" ,
5
5
"generators" : " ./collection.json" ,
6
6
"builders" : " ./builders.json" ,
23
23
"rollup-plugin-node-externals" : " ^4.1.1" ,
24
24
"esbuild" : " ^0.15.5" ,
25
25
"@babel/core" : " ^7.19.0" ,
26
- "@softarc/native-federation" : " 1.0.0-beta.2 " ,
27
- "@softarc/native-federation-runtime" : " 1.0.0-beta.2 " ,
26
+ "@softarc/native-federation" : " 1.0.0-beta.3 " ,
27
+ "@softarc/native-federation-runtime" : " 1.0.0-beta.3 " ,
28
28
"@rollup/plugin-json" : " ^4.1.0" ,
29
29
"cross-spawn" : " ^7.0.3" ,
30
30
"rollup-plugin-terser" : " ^7.0.2" ,
You can’t perform that action at this time.
0 commit comments