webpack: Set ignoreHelpers for handlebars-loader.

We don’t use the helper reference feature of handlebars-loader, so we
might as well not pay for it.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-04-09 15:26:01 -07:00 committed by Tim Abbott
parent 71edbd47d5
commit 7947de5cd1
1 changed files with 1 additions and 0 deletions

View File

@ -135,6 +135,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
{
loader: "handlebars-loader",
options: {
ignoreHelpers: true,
// Tell webpack not to explicitly require these.
knownHelpers: [
"if",