Remove newlines in webpack chunks

This commit is contained in:
Vendicated 2022-09-15 18:17:52 +02:00
parent b1d3f5e52f
commit 9bf28c0e7a
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
3 changed files with 11 additions and 8 deletions

View file

@ -7,7 +7,7 @@ export default definePlugin({
patches: [{
find: "setDevtoolsCallbacks",
replacement: {
match: /\.default=function.+$/s,
match: /\.default=function.+$/,
replace: ".default=function(){}}"
}
}]

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);