Skip to content

Commit 953f398

Browse files
Run2948zeripathsilverwind
authored
Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -… (#15465)
* Fix: npx webpack make: *** [Makefile:699: public/js/index.js] Error -1073741819 * Update webpack.config.js Co-authored-by: silverwind <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: silverwind <[email protected]>
1 parent 92c09a9 commit 953f398

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

webpack.config.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
55
import LicenseCheckerWebpackPlugin from 'license-checker-webpack-plugin';
66
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
77
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
8-
import {VueLoaderPlugin} from 'vue-loader';
9-
import {ESBuildMinifyPlugin} from 'esbuild-loader';
8+
import VueLoader from 'vue-loader';
9+
import EsBuildLoader from 'esbuild-loader';
1010
import {resolve, parse, dirname} from 'path';
1111
import webpack from 'webpack';
1212
import {fileURLToPath} from 'url';
1313

14-
const __dirname = dirname(fileURLToPath(import.meta.url));
14+
const {VueLoaderPlugin} = VueLoader;
15+
const {ESBuildMinifyPlugin} = EsBuildLoader;
1516
const {SourceMapDevToolPlugin} = webpack;
17+
const __dirname = dirname(fileURLToPath(import.meta.url));
1618
const glob = (pattern) => fastGlob.sync(pattern, {cwd: __dirname, absolute: true});
1719

1820
const themes = {};

0 commit comments

Comments
 (0)