fix: support [contenthash]
template in DllPlugin's name
option
#16935
Analysis complete
Summary
This pull request adds a new feature to the LibManifestPlugin
that allows using content hashes in DLL plugin names. It also adds a new test case with various types of modules and loaders to verify the feature.
Walkthrough
- Add
contentHashType
option togetPath
method inLibManifestPlugin
to enable content hashes in DLL plugin names (link) - Add test files for different types of modules and re-exports to test the DLL plugin with content hashes (link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link, link)
- Add custom loader
g-loader.js
to test the DLL plugin with content hashes and custom loaders (link) - Add
test.config.js
to configure the DLL plugin test case with content hashes and setnoTests
flag to true (link)
Poem
DLL plugin
AddscontentHashType
option
Winter cache is warm
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 | 52.1 seconds |
lib/LibManifestPlugin.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/_d.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/_e.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/a.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/b.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/c.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/d.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/e.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/e1.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/e2.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/ee1.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/ee2.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/f.jsx | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/g-loader.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/g.abc.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/h.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/h1.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/ha.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/hb.js | ✅ Finished | 38.8 seconds |
test/configCases/dll-plugin/0-create-dll-with-contenthash/test.config.js | ✅ Finished | 38.8 seconds |
⚠️ copilot warnings
💡 To exclude specific files use exclude: pattern
in the configuration.