mirror of https://github.com/zulip/zulip.git
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:
parent
71edbd47d5
commit
7947de5cd1
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue