From 953f39822b6dced03a8ae3f724a8d54753e5fffc Mon Sep 17 00:00:00 2001 From: Kindyroo <24992312+Run2948@users.noreply.github.com> Date: Fri, 16 Apr 2021 04:07:31 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20npx=20webpack=20make:=20***=20[Makefile:?= =?UTF-8?q?699:=20public/js/index.js]=20Error=20-=E2=80=A6=20(#15465)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819 * Update webpack.config.js Co-authored-by: silverwind Co-authored-by: zeripath Co-authored-by: silverwind --- webpack.config.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 53d5538250..a84492f608 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -5,14 +5,16 @@ import CssMinimizerPlugin from 'css-minimizer-webpack-plugin'; import LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin'; import MiniCssExtractPlugin from 'mini-css-extract-plugin'; import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin'; -import {VueLoaderPlugin} from 'vue-loader'; -import {ESBuildMinifyPlugin} from 'esbuild-loader'; +import VueLoader from 'vue-loader'; +import EsBuildLoader from 'esbuild-loader'; import {resolve, parse, dirname} from 'path'; import webpack from 'webpack'; import {fileURLToPath} from 'url'; -const __dirname = dirname(fileURLToPath(import.meta.url)); +const {VueLoaderPlugin} = VueLoader; +const {ESBuildMinifyPlugin} = EsBuildLoader; const {SourceMapDevToolPlugin} = webpack; +const __dirname = dirname(fileURLToPath(import.meta.url)); const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true}); const themes = {};