Improve webpack 4 support (afterEmit issue)#128
Conversation
|
Thank you, so much ⭐ The failing test is there: https://github.com/danethurber/webpack-manifest-plugin/blob/master/spec/plugin.integration.spec.js#L74 |
|
@andriijas You should remove Node 4 from Travis also. Node.js 4 is no longer supported. Source Code was upgraded to a higher ecmascript version. |
|
Yeah, good point! node@4 will be deprecated in April, so it's pretty safe to do it now |
Codecov Report
@@ Coverage Diff @@
## master #128 +/- ##
==========================================
- Coverage 94.89% 92.15% -2.75%
==========================================
Files 2 2
Lines 98 102 +4
==========================================
+ Hits 93 94 +1
- Misses 5 8 +3
Continue to review full report at Codecov.
|
6e12383 to
f257fec
Compare
|
Call for help. 😱😱😱 I went through 💍 and 🔥 to get the tests working properly on all versions of webpack and extract text plugin and current status is that tests are running/failing randomly. Check https://travis-ci.org/danethurber/webpack-manifest-plugin/builds/347232114 and sometimes There is something Im not getting right with the async resolving but I cant figure it out. Please advise. |
|
Don't worry about
|
|
@mastilver okay cool. then the bigger question is whatever compiler.hooks.webpackManifestPluginAfterEmit should use a sync or async API check 65f826d I will squash the commits and force push when you have decided, dont want that ugly console.log in the history. |
|
I think we want it sync for the future (So we won't need the lock system) but I could be wrong I'm sorry, I just merged something and there is some merge conflicts now... :/ |
|
@mastilver rebased. |
| compiler.hooks.emit.tap('ManifestPlugin', emit); | ||
| } else { | ||
| compiler.plugin('compilation', function (compilation) { | ||
| compiler.plugin('compilation', compilation => { |
There was a problem hiding this comment.
Shouldn't this also be compiler.hooks.compilation.tap('ManifestPlugin', compilation) ?
There was a problem hiding this comment.
Nah thats the legacy for webpack <=3
|
@mastilver anything i need to adjust? would be so thankful for a new release! |
|
We need to figure out where the memory leak come from, I did some tweaking but I was unsuccessful... :/ |
|
@mastilver They are all failing when extract text is in Beta, might be that is the issue. |
|
I tried this pull request with multiple instances of |
|
extract-text-webpack-plugin is now in maintainance mode for webpack 3. Maybe we should add https://github.com/webpack-contrib/mini-css-extract-plugin for webpack 4 tests. it will require some work though |
|
Oh, so I think we should just ignore that test for now... release v2 then release v3 with just support for webpack@4 (the failing test is something that is happening very rarely) Maybe check if we are running webpack@4, then return from the test What do you think? |
|
Sounds good👍 |
|
@mastilver Looks like |
|
Please take a look at https://github.com/webpack-contrib/mini-css-extract-plugin, it was build for webpack 4 as a replacement for |
|
@rossta nope thats obsolete PR. check webpack-contrib/extract-text-webpack-plugin#749 @mastilver updated PR with some branching/if statements to detect webpack version in tests. Added test with MiniCSSExtractPlugin for webpack >=4 didnt have time for this but it had to be done 😂 |
|
@andriijas Sorry, I'm opening a new PR for this, we can take care of the refactoring later on, I just want to get it working with webpack@4 ;) Do you mind reviewing #134 |
No description provided.