Remove ms vendor prefixes

This commit is contained in:
Dustin Brett 2024-03-15 17:37:38 -07:00
parent 91f4100010
commit f0d6630cb6

View File

@ -42,7 +42,15 @@ if (!commit) {
const CODE_REPLACE_FUNCTIONS = [
(html) => html.replace(/<noscript (.*)><\/noscript>/, ""),
(html) => html.replace(/><\/path>/, "/>"),
(html) => html.replace(/><\/path>/g, "/>"),
(html) => {
const [style] = html.match(/<style[\s\S]+>[\s\S]+<\/style>/);
return html.replace(
style,
style.replace(/(?:-ms-[^:;{}]+|[^:;{}]+:-ms-)[^;{}]+;/g, "")
);
},
(html) =>
html.replace(
/<script crossorigin="" defer src=\/_next\/static\/chunks\/polyfills-[a-zA-Z0-9-_]+.js nomodule=""><\/script>/,