Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support of injectHot and injectClient on specific chunks #2998

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paztis
Copy link

@paztis paztis commented Feb 7, 2021

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

yes

Motivation / Use-Case

In case of application with multiple iframes, only the top level frame has to listen socket for refresh
This PR add the support of chunk target in the injectClient and injectHot options. You are able to limit the client injection only in specific chunks

Resolving of #2969

Breaking Changes

Additional Info

none

@codecov
Copy link

codecov bot commented Feb 8, 2021

Codecov Report

Merging #2998 (b06217c) into master (d3837f9) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2998      +/-   ##
==========================================
+ Coverage   92.30%   92.33%   +0.02%     
==========================================
  Files          37       37              
  Lines        1261     1278      +17     
  Branches      327      335       +8     
==========================================
+ Hits         1164     1180      +16     
- Misses         92       93       +1     
  Partials        5        5              
Impacted Files Coverage Δ
lib/utils/DevServerPlugin.js 100.00% <100.00%> (ø)
lib/Server.js 94.44% <0.00%> (-0.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3837f9...6e0e451. Read the comment docs.

Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase?

@paztis
Copy link
Author

paztis commented Feb 22, 2021

Can you rebase?

rebase done

@snitin315
Copy link
Member

Can you fix conflicts?

@paztis
Copy link
Author

paztis commented Feb 23, 2021

seems all my dev is to redo as webpack5 EntryPlugin management has been totally changed few days ago...
same for the unit tests

@paztis
Copy link
Author

paztis commented Feb 24, 2021

code updated, but all the unit test part has been removed.
So there's no unit test for injectClient / injectHot

@paztis
Copy link
Author

paztis commented Feb 24, 2021

rebase done

@paztis
Copy link
Author

paztis commented Mar 2, 2021

any news ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants