keep xterm sourcemaps

This commit is contained in:
Eugene Pankov 2022-11-20 20:23:31 +01:00
parent 74026ff59c
commit 8f4392515f
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -60,7 +60,7 @@ module.exports = options => {
loader: 'source-map-loader',
options: {
filterSourceMappingUrl: (url, resourcePath) => {
if (/node_modules/.test(resourcePath)) {
if (/node_modules/.test(resourcePath) && !resourcePath.includes('xterm')) {
return false
}
return true