Closed rcoopr closed 1 year ago
The following regex matches both cases - minified and not - however I have only tested it for a couple of individual use cases
/(\s*<script type="module" crossorigin>\s*)\(function[\s\S]*?\}\)\(\);/
The removed segment is \(\)\{ after function - when not minified, the polyfill is a named function
\(\)\{
function
Thanks, fixed in 0.13.5!
The following regex matches both cases - minified and not - however I have only tested it for a couple of individual use cases
The removed segment is
\(\)\{
afterfunction
- when not minified, the polyfill is a named function