summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-12-20 23:15:47 +0100
committerGitHub <noreply@github.com>2022-12-20 17:15:47 -0500
commite767b3372a2171860f07ff57ce165d6cd68448c8 (patch)
treeb4c6b875583ea6f44291076463c7d810299a4043 /webpack.config.js
parent495b8b3635bdcc42aa419be7845c9bbaf72d7473 (diff)
downloadgitea-e767b3372a2171860f07ff57ce165d6cd68448c8.tar.gz
gitea-e767b3372a2171860f07ff57ce165d6cd68448c8.zip
Update JS dependencies and eslint (#22190)
- Update all JS dependencies to latest version - Enable unicorn/prefer-node-protocol and autofix issues - Regenerate SVGs - Add some comments to eslint rules - Tested build, Mermaid and Katex rendering
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js
index cdd8071d27..e5e592052e 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -6,10 +6,10 @@ import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin';
import {VueLoaderPlugin} from 'vue-loader';
import EsBuildLoader from 'esbuild-loader';
-import {parse, dirname} from 'path';
+import {parse, dirname} from 'node:path';
import webpack from 'webpack';
-import {fileURLToPath} from 'url';
-import {readFileSync} from 'fs';
+import {fileURLToPath} from 'node:url';
+import {readFileSync} from 'node:fs';
const {ESBuildMinifyPlugin} = EsBuildLoader;
const {SourceMapDevToolPlugin} = webpack;