Skip to content

Commit

Permalink
Update font-stylesheet-gathering-plugin to be webpack 5 compatible
Browse files Browse the repository at this point in the history
Solves the following warning:

> (node:1484) [DEP_WEBPACK_MAIN_TEMPLATE_REQUIRE_FN] DeprecationWarning: MainTemplate.requireFn is deprecated (use "__webpack_require__")
  • Loading branch information
timneutkens committed Dec 16, 2020
1 parent a7812ef commit 2e7a141
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)};`
Expand Down

0 comments on commit 2e7a141

Please sign in to comment.