chore: fix TypeError during dev (#30317)
I see the below error when I do `yarn start`. This change helps, and shouldn't have an impact on underlying functionality. 
This commit is contained in:
parent
5d44d4f2cf
commit
bc6d8d1e8c
|
|
@ -112,12 +112,10 @@ module.exports = {
|
||||||
ignoreWarnings: [
|
ignoreWarnings: [
|
||||||
function ignoreSourcemapsloaderWarnings(warning) {
|
function ignoreSourcemapsloaderWarnings(warning) {
|
||||||
return (
|
return (
|
||||||
(warning.module &&
|
(warning.module?.resource.includes("node_modules") &&
|
||||||
warning.module.resource.includes("node_modules") &&
|
warning.details?.includes("source-map-loader")) ||
|
||||||
warning.details &&
|
warning.module?.resource.includes("/node_modules/@babel/standalone/babel.js")
|
||||||
warning.details.includes("source-map-loader")) ||
|
) ?? false;
|
||||||
warning.module.resource.includes("/node_modules/@babel/standalone/babel.js")
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user