From 7947de5cd188a784f65fd4a4a19246c61d73d471 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 9 Apr 2021 15:26:01 -0700 Subject: [PATCH] webpack: Set ignoreHelpers for handlebars-loader. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- webpack.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webpack.config.ts b/webpack.config.ts index c5ad9882bd..ef8baa5098 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -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",