Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

zjsunit: Enable Babel lazy imports.

Anders Kaseorgb93e00f21342
diff --git a/frontend_tests/zjsunit/index.js b/frontend_tests/zjsunit/index.js
index 59caa6cbbb5..9db89fb376a 100644
--- a/frontend_tests/zjsunit/index.js
+++ b/frontend_tests/zjsunit/index.js
@@ -23,7 +23,7 @@ require("@babel/register")({
"^" + _.escapeRegExp(path.resolve(__dirname, "../../static/shared/js") + path.sep),
),
],
- plugins: ["rewire-ts"],
+ plugins: ["rewire-ts", ["@babel/plugin-transform-modules-commonjs", {lazy: () => true}]],
});
// Create a helper function to avoid sneaky delays in tests.