YahooArchive / strip-loader

Webpack loader to strip arbitrary functions out of your production code.
Other
282 stars 14 forks source link

Bad stripping with some string concatenation #17

Open chabou opened 7 years ago

chabou commented 7 years ago

Stripping doesn't stop at the end of this line:

console.warn('Unknown value "' + diff.join('","') + '" for property "' + mappedKey + '"');

throw new Error('Invalid error code');

https://regex101.com/r/KMb24w/1