diff --git a/install/package.json b/install/package.json index 1935840c0f..919c51abb9 100644 --- a/install/package.json +++ b/install/package.json @@ -154,6 +154,7 @@ "@types/lodash": "^4.14.191", "@types/nconf": "^0.10.3", "@types/semver": "^7.3.13", + "@types/validator": "^13.7.0", "@typescript-eslint/eslint-plugin": "^5.48.0", "@typescript-eslint/parser": "^5.48.0", "coveralls": "3.1.1", @@ -163,6 +164,7 @@ "grunt": "1.5.3", "grunt-contrib-watch": "1.1.0", "husky": "8.0.2", + "ignore-loader": "^0.1.2", "jsdom": "20.0.3", "lint-staged": "13.1.0", "mocha": "10.2.0", diff --git a/webpack.common.js b/webpack.common.js index efff9e73f9..00ffffb9ce 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -46,6 +46,7 @@ module.exports = { 'node_modules', ...activePlugins.map(p => `node_modules/${p}/node_modules`), ], + extensions: ['.js', '.json', '.wasm', '.mjs'], alias: { assets: path.resolve(__dirname, 'build/public'), forum: path.resolve(__dirname, 'build/public/src/client'), @@ -59,4 +60,13 @@ module.exports = { 'ace/ace': path.resolve(__dirname, 'build/public/src/modules/ace-editor.js'), }, }, + module: { + rules: [ + { + test: /\.(ts|tsx)$/, + exclude: /node_modules/, + loader: 'ignore-loader', + }, + ], + }, };