This repository was archived by the owner on Mar 17, 2021. It is now read-only.
feat: pass immutable info on files#383
Merged
alexander-akait merged 1 commit intowebpack-contrib:masterfrom Aug 31, 2020
bschlenk:master
Merged
feat: pass immutable info on files#383alexander-akait merged 1 commit intowebpack-contrib:masterfrom bschlenk:master
alexander-akait merged 1 commit intowebpack-contrib:masterfrom
bschlenk:master
Conversation
Codecov Report
@@ Coverage Diff @@
## master #383 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 29 30 +1
Branches 12 12
=========================================
+ Hits 29 30 +1
Continue to review full report at Codecov.
|
bschlenk
commented
Aug 26, 2020
|
|
||
| const context = options.context || this.rootContext; | ||
| const name = options.name || '[contenthash].[ext]'; | ||
| const immutable = /\[([^:\]]+:)?(hash|contenthash)(:[^\]]+)?\]/gi.test(name); |
Contributor
Author
There was a problem hiding this comment.
Ideally this would be another function in https://github.com/webpack/loader-utils
Member
There was a problem hiding this comment.
Yes, I will test it deeply in near future
Contributor
Author
|
not sure why ModuleConcatenationPlugin test is failing. Source doesn't use the |
Member
|
I think we should improve test, webpack@5 implements better tree so count of modules can be reduced |
Member
|
I will merge and fix tests after merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains a:
Motivation / Use-Case
Passes an
immutableflag through assetInfo which other plugins may use.#382
Breaking Changes
Additional Info