Skip to content

Commit

Permalink
fix: update webpack common config to fix errors (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
solababs authored Aug 2, 2023
1 parent 0081949 commit ad42423
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions config/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,22 @@ module.exports = {
},
extensions: ['.js', '.jsx'],
},
ignoreWarnings: [
// Ignore warnings raised by source-map-loader.
// some third party packages may ship miss-configured sourcemaps, that interrupts the build
// See: https://github.com/facebook/create-react-app/discussions/11278#discussioncomment-1780169
/**
*
* @param {import('webpack').WebpackError} warning
* @returns {boolean}
*/
function ignoreSourcemapsloaderWarnings(warning) {
return (
warning.module
&& warning.module.resource.includes('node_modules')
&& warning.details
&& warning.details.includes('source-map-loader')
);
},
],
};

0 comments on commit ad42423

Please sign in to comment.