Skip to content
Snippets Groups Projects
Commit b434dfe1 authored by Johanna Szepanski's avatar Johanna Szepanski
Browse files

handle source map warnings for packages not using webpack 5

parent c885b94b
No related branches found
No related tags found
2 merge requests!497CE-2790: Prepare for 4.0.0,!418Upgrade React-scripts and Storybook
......@@ -11,7 +11,19 @@ module.exports = {
"http": require.resolve("stream-http"),
"https": require.resolve("https-browserify")
},
}
};
webpackConfig.ignoreWarnings = [
function ignoreSourcemapsloaderWarnings(warning) {
return (
warning.module &&
warning.module.resource.includes("node_modules") &&
warning.details &&
warning.details.includes("source-map-loader")
);
},
];
return webpackConfig;
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment