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: [
|
||||
function ignoreSourcemapsloaderWarnings(warning) {
|
||||
return (
|
||||
(warning.module &&
|
||||
warning.module.resource.includes("node_modules") &&
|
||||
warning.details &&
|
||||
warning.details.includes("source-map-loader")) ||
|
||||
warning.module.resource.includes("/node_modules/@babel/standalone/babel.js")
|
||||
);
|
||||
(warning.module?.resource.includes("node_modules") &&
|
||||
warning.details?.includes("source-map-loader")) ||
|
||||
warning.module?.resource.includes("/node_modules/@babel/standalone/babel.js")
|
||||
) ?? false;
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user