Skip to content

Commit

Permalink
chore(webpack): ignore source maps of some packages that are generati…
Browse files Browse the repository at this point in the history
…ng warnings (#9155)
  • Loading branch information
ranihorev committed May 12, 2021
1 parent a164c6e commit 03c684d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,20 @@ function configure(env, webpackOpts) {
{
test: /\.js$/,
enforce: 'pre',
use: ['source-map-loader'],
use: [
{
loader: 'source-map-loader',
options: {
filterSourceMappingUrl: (url, resourcePath) => {
if (IS_PRODUCTION) return true;
if (/.*\/node_modules\/(rxjs-compat|graphql-tag)\/.*/.test(resourcePath)) {
return false;
}
return true;
},
},
},
],
},
],
},
Expand Down

0 comments on commit 03c684d

Please sign in to comment.