Skip to content

Commit ee87628

Browse files
authored
Update index.js
1 parent 367f180 commit ee87628

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ module.exports = function loader (css, map, meta) {
137137
css = this.exec(css, this.resource)
138138
}
139139

140-
if (!sourceMap && sourceMap !== false && map) {
141-
this.emitWarning(`\n\n ⚠️ PostCSS Loader\n\nPrevious source map found, but options.sourceMap isn't set.\nIn this case the loader will discard the source map entirely for performance reasons.\nSee https://github.com/postcss/postcss-loader#sourcemap for more information.\n\n`)
142-
}
143-
144140
if (sourceMap && typeof map === 'string') map = JSON.parse(map)
145141
if (sourceMap && map) options.map.prev = map
146142

0 commit comments

Comments
 (0)