module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.55k stars 242 forks source link

feat(enhanced): support layers in consume share plugin #3276

Open ScriptedAlchemy opened 8 hours ago

ScriptedAlchemy commented 8 hours ago

Description

This pull request introduces several enhancements and fixes to the module sharing functionality in the enhanced package. The changes include updating the ConsumeSharedModule and ConsumeSharedPlugin to support module layers, adding a new Jest command to the package.json, and updating schema validation for the ConsumeSharedPlugin.

Enhancements to Module Sharing:

Updates to package.json:

Schema Validation:

Note

Runtime module aspects still need to be updated, this is the compiler mechanics only for module. Runtime parts will likely be done once the other half of share plugin has layer support

Related Issue

Types of changes

Checklist

changeset-bot[bot] commented 8 hours ago

āš ļø No Changeset found

Latest commit: 40ae81768f47bbce75b3d6f88dfb5826a1d94774

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

netlify[bot] commented 8 hours ago

Deploy Preview for module-federation-docs ready!

Name Link
Latest commit 40ae81768f47bbce75b3d6f88dfb5826a1d94774
Latest deploy log https://app.netlify.com/sites/module-federation-docs/deploys/67456a137ffba5000858d18f
Deploy Preview https://deploy-preview-3276--module-federation-docs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.