File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/enhanced/src/lib/sharing Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,9 @@ class ConsumeSharedModule extends Module {
67
67
super (
68
68
WEBPACK_MODULE_TYPE_CONSUME_SHARED_MODULE ,
69
69
context ,
70
- options . layer ?? undefined ,
70
+ options ? .layer ?? null ,
71
71
) ;
72
+ this . layer = options ?. layer ?? null ;
72
73
this . options = options ;
73
74
}
74
75
@@ -280,6 +281,7 @@ class ConsumeSharedModule extends Module {
280
281
override serialize ( context : ObjectSerializerContext ) : void {
281
282
const { write } = context ;
282
283
write ( this . options ) ;
284
+ write ( this . layer ) ;
283
285
super . serialize ( context ) ;
284
286
}
285
287
@@ -288,7 +290,10 @@ class ConsumeSharedModule extends Module {
288
290
*/
289
291
override deserialize ( context : ObjectDeserializerContext ) : void {
290
292
const { read } = context ;
291
- this . options = read ( ) ;
293
+ const options = read ( ) ;
294
+ const layer = read ( ) ;
295
+ this . options = options ;
296
+ this . layer = layer ;
292
297
super . deserialize ( context ) ;
293
298
}
294
299
}
You can’t perform that action at this time.
0 commit comments