]> source.dussan.org Git - gitea.git/commitdiff
Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… (#15465)
authorKindyroo <24992312+Run2948@users.noreply.github.com>
Thu, 15 Apr 2021 20:07:31 +0000 (04:07 +0800)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 20:07:31 +0000 (16:07 -0400)
* Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819

* Update webpack.config.js

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
webpack.config.js

index 53d553825049736b9e49159f05039fb64b764b75..a84492f608b6437a351427ceadb7fd6832cfd8c8 100644 (file)
@@ -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 = {};