Skip to content

Node.js based forum software built for the modern web

chore: add type to webpack config file (#12072)

Percy Mad79dfd038243
diff --git a/webpack.common.js b/webpack.common.js
index 850208df9c..7ea12755ae 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -16,6 +16,7 @@ if (relativePath === undefined) {
relativePath = urlObject.pathname !== '/' ? urlObject.pathname.replace(/\/+$/, '') : '';
}
+/** @type { import('webpack').Configuration } */
module.exports = {
plugins: [],
entry: {
diff --git a/webpack.dev.js b/webpack.dev.js
index 9d29a03157..d7cad59663 100644
--- a/webpack.dev.js
+++ b/webpack.dev.js
@@ -3,7 +3,7 @@
const { merge } = require('webpack-merge');
const common = require('./webpack.common');
-module.exports = merge(common, {
+module.exports = merge(common, /** @type { import('webpack').Configuration } */ {
mode: 'development',
// devtool: 'eval-source-map',
});
diff --git a/webpack.installer.js b/webpack.installer.js
index 8324669680..69a6da4e39 100644
--- a/webpack.installer.js
+++ b/webpack.installer.js
@@ -4,6 +4,7 @@
const path = require('path');
+/** @type { import('webpack').Configuration } */
module.exports = {
mode: 'production',
entry: {
diff --git a/webpack.prod.js b/webpack.prod.js
index d5d5c8a1fe..01644deb6e 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -6,7 +6,7 @@ const ProgressPlugin = require('progress-webpack-plugin');
const common = require('./webpack.common');
-module.exports = merge(common, {
+module.exports = merge(common, /** @type { import('webpack').Configuration } */ {
mode: 'production',
plugins: [
new ProgressPlugin(true),