Skip to content

Commit

Permalink
fix(enhanced): update share options of share plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptedAlchemy committed Nov 25, 2024
1 parent b70eb8d commit 358ba00
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 495 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ export interface SharedConfig {
*/
version?: false | string;
/**
* Share a specific layer of the module, if the module supports layers.
* Issuer layer in which the module should be resolved.
*/
layer?: string;
issuerLayer?: string;
/**
* Required layer for the shared module.
*/
requiredLayer?: string;
}
6 changes: 4 additions & 2 deletions packages/enhanced/src/lib/sharing/SharePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ class SharePlugin {
singleton: options.singleton,
packageName: options.packageName,
eager: options.eager,
layer: options.layer,
issuerLayer: options.issuerLayer,
requiredLayer: options.requiredLayer,
},
}),
);
Expand All @@ -67,7 +68,8 @@ class SharePlugin {
requiredVersion: options.requiredVersion,
strictVersion: options.strictVersion,
singleton: options.singleton,
layer: options.layer,
issuerLayer: options.issuerLayer,
requiredLayer: options.requiredLayer,
},
}));
//@ts-ignore
Expand Down
357 changes: 0 additions & 357 deletions packages/enhanced/src/schemas/sharing/ConsumeSharedPlugin.check.js

This file was deleted.

Loading

0 comments on commit 358ba00

Please sign in to comment.