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.

webpack: Remove LoaderOptionsPlugin.

Anders Kaseorg7c1ee9310e1c
diff --git a/webpack.config.ts b/webpack.config.ts
index e7dcb9980d4..9f222c373e2 100644
--- a/webpack.config.ts
+++ b/webpack.config.ts
@@ -5,7 +5,7 @@ import path from "path";
import CssMinimizerPlugin from "css-minimizer-webpack-plugin";
import HtmlWebpackPlugin from "html-webpack-plugin";
import MiniCssExtractPlugin from "mini-css-extract-plugin";
-import webpack from "webpack";
+import type webpack from "webpack";
import BundleTracker from "webpack-bundle-tracker";
import DebugRequirePlugin from "./tools/debug-require-webpack-plugin";
@@ -195,12 +195,6 @@ export default (env: {minimize?: boolean} = {}, argv: {mode?: string}): webpack.
? "webpack-stats-production.json"
: "var/webpack-stats-dev.json",
}),
- ...(production
- ? []
- : [
- // script-loader should load sourceURL in dev
- new webpack.LoaderOptionsPlugin({debug: true}),
- ]),
// Extract CSS from files
new MiniCssExtractPlugin({
filename: production ? "[name].[contenthash].css" : "[name].css",