diff --git a/config-overrides.js b/config-overrides.js index fa6f848..81b77ff 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -54,5 +54,20 @@ module.exports = function override(config, env) { config.resolve.alias['react-native$'] = require.resolve('react-native-web'); + // Ignore source map warnings from third-party packages. Ref: https://github.com/facebook/create-react-app/discussions/11767#discussioncomment-3416044 + const ignoreSourceMapPackages = [ + '@cosmjs', + '@confio/ics23', + '@json-rpc-tools', + '@pedrouid/environment', + '@walletconnect', + 'cosmjs-types', + ]; + + config.ignoreWarnings = ignoreSourceMapPackages.map(pkg => ({ + module: new RegExp(`node_modules/${pkg.replace('/', '\\/')}`), + message: /Failed to parse source map/, + })); + return config; }; diff --git a/package.json b/package.json index 6842a50..53cc380 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-wallet", - "version": "0.1.7-zenith-0.2.2", + "version": "0.1.7-zenith-0.2.3", "private": true, "dependencies": { "@laconic-network/cosmjs-util": "^0.1.0",