Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/no-anonymous-default-export.
Anders Kaseorg3c5756421396
diff --git a/web/postcss.config.js b/web/postcss.config.jsindex ec7e6949f5e..ee23f7f1715 100644--- a/web/postcss.config.js+++ b/web/postcss.config.js@@ -4,7 +4,7 @@ const path = require("path");const {media_breakpoints} = require("./src/css_variables");-module.exports = ({file}) => ({+const config = ({file}) => ({plugins: [(file.basename ?? path.basename(file)) === "dark_theme.css" &&// Add postcss-import plugin with postcss-prefixwrap to handle@@ -22,3 +22,4 @@ module.exports = ({file}) => ({}),],});+module.exports = config;diff --git a/web/webpack.config.ts b/web/webpack.config.tsindex dc0b153b69e..1b6034386c7 100644--- a/web/webpack.config.ts+++ b/web/webpack.config.ts@@ -13,7 +13,7 @@ import DebugRequirePlugin from "./debug-require-webpack-plugin";import assets from "./webpack.assets.json";import dev_assets from "./webpack.dev-assets.json";-export default (+const config = (env: {minimize?: boolean; ZULIP_VERSION?: string} = {},argv: {mode?: string},): webpack.Configuration[] => {@@ -272,3 +272,4 @@ export default (return [frontendConfig, serverConfig];};+export default config;