-
-
Notifications
You must be signed in to change notification settings - Fork 386
Handle Template for webpack4 #759
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #759 +/- ##
=======================================
Coverage 89.31% 89.31%
=======================================
Files 6 6
Lines 805 805
Branches 247 248 +1
=======================================
Hits 719 719
Misses 83 83
Partials 3 3
Continue to review full report at Codecov.
|
Can you accept CLA? |
CLA? What does it mean? |
48524bf
You can found this in our github actions |
done |
@SinimaWath Can you use the same email in commit(s)? |
@@ -619,7 +619,7 @@ class MiniCssExtractPlugin { | |||
} | |||
}); | |||
|
|||
const { Template } = webpack; | |||
const Template = webpack.Template || webpack.webpack.Template; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpack.webpack
doesn't exist in webpack
v4 and v5, also we use:
const webpack = compiler.webpack
? compiler.webpack
: // eslint-disable-next-line global-require
require('webpack');
and for v4 and v5 we have only webpack.Template
Anyway thanks for PR |
Closing due to inactivity. Please test with latest version and feel free to reopen if still regressions. Thanks! |
This PR contains a:
Motivation / Use-Case
Template in webpack 4 has different place.
That fix bug in nextjs. vercel/next.js#25276
Breaking Changes
Additional Info