From 7c1ee9310e1ce27aa0d8d5674332c26ef87a4f79 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 20 Sep 2021 14:15:34 -0700 Subject: [PATCH] webpack: Remove LoaderOptionsPlugin. This seemed to exist for compatibility with webpack 1. Signed-off-by: Anders Kaseorg --- webpack.config.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/webpack.config.ts b/webpack.config.ts index e7dcb9980d..9f222c373e 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",