fix #16561 #16562
fix #16561 #16562
Analysis complete
Summary
This pull request adds a new feature that allows users to customize the container object for the AMD library type. It introduces a new option amdContainer
for the output
, ContainerPlugin
, and ModuleFederationPlugin
configurations, and updates the schemas, validation, and tests accordingly. It also modifies the AmdLibraryPlugin
class to use the amdContainer
option in the library output and hash computation.
Walkthrough
- Add a new option
amdContainer
for theoutput
configuration that allows specifying a custom container object for the AMD library type (link, link, link, link, link, link, link, link, link, link) - Implement the
amdContainer
option in theAmdLibraryPlugin
class, which generates the source code for the AMD library output (link, link, link, link, link, link, link) - Add JSDoc annotation for the
amdContainer
option to theAbstractLibraryPlugin
class, which is the base class for all library plugins (link) - Update the hash computation in the
AmdLibraryPlugin
class to include theamdContainer
option (link) - Add tests for the
amdContainer
option with different AMD library types (amd
,amd-require
,amd-named
) and custom container objects (link, link, link, link, link, link) - Add a new option
amdContainer
for theContainerPlugin
andModuleFederationPlugin
configurations that allows specifying a custom container object for the AMD module format (link, link, link, link) - Update the generated validation files for the
ContainerPlugin
andModuleFederationPlugin
schemas to reflect the new option (link, link)
Poem
Sing, O Muse, of the skillful pull request
That addedamdContainer
to the output options
And enabled the users of the swift-footed webpack
To customize the container of their AMD modules.
Emoji
🚀🛠️✅
Include these descriptions in your pull request description by including the following marker tags:
copilot:all
: all the content, in one gocopilot:summary
: a one paragraph summary of the code changescopilot:walkthrough
: a step by step walkthrough of the code changescopilot:poem
: a poem about the code changes!copilot:emoji
: three emoji that capture the changes
Feedback is welcome. Simply add a comment to this PR of the form /copilot feedback [your comments here]
.
Details
Copilot for PRs is a limited technical preview from GitHub Next.
It's aim is to make it easier to write pull request descriptions by providing automatically generated suggestions based on the code changes.
To find out more go to https://githubnext.com/projects/copilot-for-pull-requests or come and chat with us on Discord
File | Status | Duration |
---|---|---|
Summary & Walkthrough | ✅ Finished | 115.4 seconds |
lib/config/normalization.js | ✅ Finished | 80.1 seconds |
lib/library/AmdLibraryPlugin.js | ✅ Finished | 83.9 seconds |
schemas/WebpackOptions.check.js | ✅ Finished | 80.1 seconds |
schemas/WebpackOptions.json | ✅ Finished | 82.6 seconds |
schemas/plugins/container/ContainerPlugin.check.js | ✅ Finished | 80.1 seconds |
schemas/plugins/container/ContainerPlugin.json | ✅ Finished | 82.3 seconds |
schemas/plugins/container/ModuleFederationPlugin.check.js | ✅ Finished | 80.1 seconds |
schemas/plugins/container/ModuleFederationPlugin.json | ✅ Finished | 84.9 seconds |
test/Defaults.unittest.js | ✅ Finished | 85.1 seconds |
test/Validation.test.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-named/index.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-named/webpack.config.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-require/index.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-require/webpack.config.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-unnamed/index.js | ✅ Finished | 80.1 seconds |
test/configCases/target/amd-container-unnamed/webpack.config.js | ✅ Finished | 80.1 seconds |