diff --git a/src/index.js b/src/index.js index bf0d69d1..55fa4825 100644 --- a/src/index.js +++ b/src/index.js @@ -84,8 +84,8 @@ function loader(content) { // Since we specified options.sourceMap = path.join(process.cwd(), "/sass.map"); in getSassOptions, // we know that this path is relative to process.cwd(). This is how node-sass works. // eslint-disable-next-line no-param-reassign - const stdinIndex = result.map.sources.findIndex( - (source) => source.indexOf('stdin') !== -1 + const stdinIndex = result.map.sources.findIndex((source) => + source.includes('stdin') ); if (stdinIndex !== -1) {