Remove unnecessary @ts-expect-error, as the bug they are expecting is fixed in webpack 5.95.0.

This commit is contained in:
Tim Donohue
2024-10-22 11:35:09 -05:00
parent 93c6ab2684
commit 87dc6be213
2 changed files with 0 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ const SCSS_LOADERS = [
export const commonExports = { export const commonExports = {
plugins: [ plugins: [
// @ts-expect-error: EnvironmentPlugin constructor types are currently to strict see issue https://github.com/webpack/webpack/issues/18719
new EnvironmentPlugin({ new EnvironmentPlugin({
languageHashes: getFileHashes(path.join(__dirname, '..', 'src', 'assets', 'i18n'), /.*\.json5/g), languageHashes: getFileHashes(path.join(__dirname, '..', 'src', 'assets', 'i18n'), /.*\.json5/g),
}), }),

View File

@@ -6,7 +6,6 @@ import { commonExports } from './webpack.common';
module.exports = Object.assign({}, commonExports, { module.exports = Object.assign({}, commonExports, {
plugins: [ plugins: [
...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({ new EnvironmentPlugin({
'process.env': { 'process.env': {
NODE_ENV: 'production', NODE_ENV: 'production',