mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
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:
committed by
Tim Abbott
parent
71edbd47d5
commit
7947de5cd1
@@ -135,6 +135,7 @@ export default (_env: unknown, argv: {mode?: string}): webpack.Configuration[] =
|
|||||||
{
|
{
|
||||||
loader: "handlebars-loader",
|
loader: "handlebars-loader",
|
||||||
options: {
|
options: {
|
||||||
|
ignoreHelpers: true,
|
||||||
// Tell webpack not to explicitly require these.
|
// Tell webpack not to explicitly require these.
|
||||||
knownHelpers: [
|
knownHelpers: [
|
||||||
"if",
|
"if",
|
||||||
|
|||||||
Reference in New Issue
Block a user