Skip to content

Commit 5055669

Browse files
fix(enhanced): align experiments type with schema
Remove allowNodeModulesSuffixMatch from experiments. Schema only allows aliasConsumption. No runtime change.
1 parent 0e76c31 commit 5055669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/enhanced/src/lib/sharing/SharePlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const validate = createSchemaValidation(
2929
);
3030

3131
type ShareExperiments = {
32-
allowNodeModulesSuffixMatch?: boolean;
32+
// Enable alias-aware consuming via NormalModuleFactory.afterResolve (experimental)
3333
aliasConsumption?: boolean;
3434
};
3535

@@ -105,7 +105,7 @@ class SharePlugin {
105105
this._consumes = consumes;
106106
this._provides = provides;
107107
// keep experiments object if present (validated by schema)
108-
// includes allowNodeModulesSuffixMatch and aliasConsumption (experimental)
108+
// includes only aliasConsumption (experimental)
109109
this._experiments = options.experiments as ShareExperiments | undefined;
110110
}
111111

0 commit comments

Comments
 (0)