From daa9552548a411203dd5840c144be46b7532d071 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 12 Nov 2024 22:16:26 -0800 Subject: [PATCH] zulip-icons: Rename to *.cjs. Signed-off-by: Anders Kaseorg --- web/images/icons/{zulip-icons.font.js => zulip-icons.font.cjs} | 0 web/src/bundles/common.ts | 2 +- web/webpack.config.ts | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename web/images/icons/{zulip-icons.font.js => zulip-icons.font.cjs} (100%) diff --git a/web/images/icons/zulip-icons.font.js b/web/images/icons/zulip-icons.font.cjs similarity index 100% rename from web/images/icons/zulip-icons.font.js rename to web/images/icons/zulip-icons.font.cjs diff --git a/web/src/bundles/common.ts b/web/src/bundles/common.ts index d45f289a9d..e6c7f5e78c 100644 --- a/web/src/bundles/common.ts +++ b/web/src/bundles/common.ts @@ -6,7 +6,7 @@ import "../blueslip.ts"; import "../../third/bootstrap/css/bootstrap-btn.css"; import "simplebar/dist/simplebar.css"; import "font-awesome/css/font-awesome.css"; -import "../../images/icons/zulip-icons.font.js"; +import "../../images/icons/zulip-icons.font.cjs"; import "source-sans/source-sans-3VF.css"; import "source-code-pro/source-code-pro.css"; import "@fontsource-variable/open-sans"; diff --git a/web/webpack.config.ts b/web/webpack.config.ts index 02186944b4..c56a50ea99 100644 --- a/web/webpack.config.ts +++ b/web/webpack.config.ts @@ -95,7 +95,7 @@ const config = ( }, // Generate webfont { - test: /\.font\.js$/, + test: /\.font\.cjs$/, use: [ MiniCssExtractPlugin.loader, { @@ -114,6 +114,7 @@ const config = ( }, }, ], + type: "javascript/auto", }, // Transpile .js and .ts files with Babel {