Unverified Commit 5d5383b2 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Update font-stylesheet-gathering-plugin to be webpack 5 compatible (#20229)

Solves the following warning:

> (node:1484) [DEP_WEBPACK_MAIN_TEMPLATE_REQUIRE_FN] DeprecationWarning: MainTemplate.requireFn is deprecated (use "__webpack_require__")
parent a7812ef7
......@@ -145,7 +145,7 @@ export class FontStylesheetGatheringPlugin {
return `${source}
// Font manifest declaration
${
mainTemplate.requireFn
isWebpack5 ? '__webpack_require__' : mainTemplate.requireFn
}.__NEXT_FONT_MANIFEST__ = ${JSON.stringify(
this.manifestContent
)};`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment