Remove newlines in webpack chunks

This commit is contained in:
Vendicated
2022-09-15 18:17:52 +02:00
parent b1d3f5e52f
commit 9bf28c0e7a
3 changed files with 11 additions and 8 deletions

View File

@ -16,7 +16,7 @@ export default definePlugin({
}
},
{
match: /\w\.createElement.+?["']Host ["'].+?\):null/s,
match: /\w\.createElement.+?["']Host ["'].+?\):null/,
replace: m => {
const idx = m.indexOf("Host") - 1;
const template = m.slice(0, idx);