@@ -11,7 +11,7 @@ import {
11
11
12
12
import { ServeExecutorSchema } from './schema' ;
13
13
import { BuildExecutorSchema } from '../build/schema' ;
14
- import { deepMergeObject , prepareConfig } from '../helpers' ;
14
+ import { deepMergeObject , getMapName , prepareConfig } from '../helpers' ;
15
15
16
16
17
17
function getBuilderAction ( ) {
@@ -32,14 +32,16 @@ export async function* runBuilder(
32
32
) {
33
33
context . logger . info ( 'Run serve mf' ) ;
34
34
35
+ const { mf : defaultOptionsMfe , ...defaultOptions } = options ;
36
+
35
37
const buildTarget = targetFromTargetString ( options . buildTarget ) ;
36
38
const targetOptions = ( await context . getTargetOptions (
37
39
buildTarget
38
40
) ) as unknown as BuildExecutorSchema ;
39
41
40
42
const resultMfeOptions = deepMergeObject (
41
43
targetOptions [ 'mf' ] || { } ,
42
- options . mf || { }
44
+ defaultOptionsMfe || { }
43
45
) ;
44
46
45
47
const optionsMfe = await prepareConfig (
@@ -48,10 +50,19 @@ export async function* runBuilder(
48
50
context
49
51
) ;
50
52
53
+ const mapShareObject = getMapName (
54
+ optionsMfe . shared ,
55
+ optionsMfe . sharedMappings
56
+ ) ;
57
+
58
+ const externalDependencies = [ ...mapShareObject . values ( ) ] . map (
59
+ ( i ) => i . packageName
60
+ ) ;
61
+
51
62
const normalizeOuterOptions = await normalizeOptions (
52
63
context ,
53
64
context . target . project ,
54
- options as any
65
+ defaultOptions
55
66
) ;
56
67
57
68
const extensions = {
0 commit comments