From d634903d0d50dc9e4d87277af594a31a9441952c Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Tue, 22 Oct 2024 11:35:09 -0500 Subject: [PATCH] Remove unnecessary @ts-expect-error, as the bug they are expecting is fixed in webpack 5.95.0. --- webpack/webpack.common.ts | 1 - webpack/webpack.prod.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/webpack/webpack.common.ts b/webpack/webpack.common.ts index d8155288cb4..8d433edf393 100644 --- a/webpack/webpack.common.ts +++ b/webpack/webpack.common.ts @@ -79,7 +79,6 @@ const SCSS_LOADERS = [ export const commonExports = { plugins: [ - // @ts-expect-error: EnvironmentPlugin constructor types are currently to strict see issue https://github.com/webpack/webpack/issues/18719 new EnvironmentPlugin({ languageHashes: getFileHashes(path.join(__dirname, '..', 'src', 'assets', 'i18n'), /.*\.json5/g), }), diff --git a/webpack/webpack.prod.ts b/webpack/webpack.prod.ts index fce321d1520..e35bc0c9078 100644 --- a/webpack/webpack.prod.ts +++ b/webpack/webpack.prod.ts @@ -6,7 +6,6 @@ import { commonExports } from './webpack.common'; module.exports = Object.assign({}, commonExports, { plugins: [ ...commonExports.plugins, - // @ts-expect-error: EnvironmentPlugin constructor types are currently to strict see issue https://github.com/webpack/webpack/issues/18719 new EnvironmentPlugin({ 'process.env': { NODE_ENV: 'production',