Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/curvy-ducks-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@module-federation/enhanced': patch
---

chore(enhanced): update schema
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@
}
]
},
"shareStrategy": {
"description": "[Deprecated]: load shared strategy(defaults to 'version-first').",
"enum": ["version-first", "loaded-first"],
"type": "string"
},
"singleton": {
"description": "Allow only a single version of the shared module in share scope (disabled by default).",
"type": "boolean"
Expand Down Expand Up @@ -573,8 +578,27 @@
"additionalProperties": false,
"properties": {
"async": {
"description": "Enable/disable asynchronous loading of runtime modules. When enabled, entry points will be wrapped in asynchronous chunks.",
"type": "boolean"
"description": "Enable/disable asynchronous loading of runtime modules or provide async boundary options.",
"anyOf": [
{ "type": "boolean" },
{
"type": "object",
"properties": {
"eager": {
"description": "Eagerly load a module, matched via RegExp or predicate function",
"anyOf": [
{ "instanceof": "RegExp" },
{ "instanceof": "Function" }
]
},
"excludeChunk": {
"description": "Predicate to exclude chunk from async boundary",
"instanceof": "Function"
}
},
"additionalProperties": false
}
]
},
"exposes": {
"$ref": "#/definitions/Exposes"
Expand Down Expand Up @@ -676,7 +700,24 @@
"type": "boolean"
},
"extractThirdParty": {
"type": "boolean"
"anyOf": [
{ "type": "boolean" },
{
"type": "object",
"properties": {
"exclude": {
"type": "array",
"items": {
"anyOf": [
{ "type": "string" },
{ "instanceof": "RegExp" }
]
}
}
},
"additionalProperties": false
}
]
},
"extractRemoteTypes": {
"type": "boolean"
Expand Down Expand Up @@ -719,7 +760,29 @@
"items": {
"type": "string"
}
}
},
"remoteTypeUrls": {
"description": "Remote type URLs provider or map",
"anyOf": [
{ "instanceof": "Function" },
{
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"alias": { "type": "string" },
"api": { "type": "string" },
"zip": { "type": "string" }
},
"required": ["api", "zip"],
"additionalProperties": false
}
}
]
},
"timeout": { "type": "number" },
"family": { "enum": [4, 6] },
"typesOnBuild": { "type": "boolean" }
}
}
]
Expand Down Expand Up @@ -755,6 +818,21 @@
},
"provideExternalRuntime": {
"type": "boolean"
},
"optimization": {
"description": "Options related to build optimizations.",
"type": "object",
"properties": {
"disableSnapshot": {
"description": "Enable optimization to skip snapshot plugin",
"type": "boolean"
},
"target": {
"description": "Target environment for the build",
"enum": ["web", "node"]
}
},
"additionalProperties": false
}
}
},
Expand Down
Loading