Skip to content

ModuleFederation extractThirdParty json schema validation #4089

@shevdrakon

Description

@shevdrakon

Clear and concise description of the problem

Based on json schema extractThirdParty expected to be a boolean value only, while code base allows to be an object. typescript intellisense highlight also indicates it could be an object:

Image

Was that for intention? I would expect to have an object as a valid value.

Suggested solution

Modify ModuleFederationPkugin json schema validation for extractThirdParty to allow to be an object with exclude values, i.e.:

// configuration
extractThirdParty: {
    exclude: ['react', 'react-dom'],
},

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions