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.


![shot-2024-01-16-05-42-24](https://github.com/appsmithorg/appsmith/assets/120119/65f9f050-38b2-425f-8482-26a8ab5f1612)
This commit is contained in:
Shrikant Sharat Kandula 2024-01-16 11:59:37 +05:30 committed by GitHub
parent 5d44d4f2cf
commit bc6d8d1e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: [