Upgrade vite-plugin-remove-console

Includes all other console.* methods too
pull/54/head
Lim Chee Aun 2023-02-14 19:10:21 +08:00
rodzic 5f052bb260
commit 21f9b3c4c6
3 zmienionych plików z 11 dodań i 9 usunięć

14
package-lock.json wygenerowano
Wyświetl plik

@ -43,7 +43,7 @@
"vite-plugin-html-config": "~1.0.11",
"vite-plugin-html-env": "~1.2.7",
"vite-plugin-pwa": "~0.14.4",
"vite-plugin-remove-console": "~1.3.0",
"vite-plugin-remove-console": "~2.0.0",
"workbox-cacheable-response": "~6.5.4",
"workbox-expiration": "~6.5.4",
"workbox-routing": "~6.5.4",
@ -6699,9 +6699,9 @@
}
},
"node_modules/vite-plugin-remove-console": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/vite-plugin-remove-console/-/vite-plugin-remove-console-1.3.0.tgz",
"integrity": "sha512-5a/OLYB6yNRHMuHj9rBQRYMQ1NBKffxA8BaD77urUBLcGOWMHFHALjh6C26wZfZd41KytSwLp6DhvNKU78mNJg==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/vite-plugin-remove-console/-/vite-plugin-remove-console-2.0.0.tgz",
"integrity": "sha512-bEsyShSacsunbm0X1zaVliwgmWlsaBPLk7FN4wr2xQMs8zSZPSwpRNTT5UZiF0+cfMEkN4VVnofITawmT3pjgQ==",
"dev": true
},
"node_modules/webidl-conversions": {
@ -11587,9 +11587,9 @@
}
},
"vite-plugin-remove-console": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/vite-plugin-remove-console/-/vite-plugin-remove-console-1.3.0.tgz",
"integrity": "sha512-5a/OLYB6yNRHMuHj9rBQRYMQ1NBKffxA8BaD77urUBLcGOWMHFHALjh6C26wZfZd41KytSwLp6DhvNKU78mNJg==",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/vite-plugin-remove-console/-/vite-plugin-remove-console-2.0.0.tgz",
"integrity": "sha512-bEsyShSacsunbm0X1zaVliwgmWlsaBPLk7FN4wr2xQMs8zSZPSwpRNTT5UZiF0+cfMEkN4VVnofITawmT3pjgQ==",
"dev": true
},
"webidl-conversions": {

Wyświetl plik

@ -45,7 +45,7 @@
"vite-plugin-html-config": "~1.0.11",
"vite-plugin-html-env": "~1.2.7",
"vite-plugin-pwa": "~0.14.4",
"vite-plugin-remove-console": "~1.3.0",
"vite-plugin-remove-console": "~2.0.0",
"workbox-cacheable-response": "~6.5.4",
"workbox-expiration": "~6.5.4",
"workbox-routing": "~6.5.4",

Wyświetl plik

@ -30,7 +30,9 @@ export default defineConfig({
preact(),
splitVendorChunkPlugin(),
VitePluginHtmlEnv(),
removeConsole(),
removeConsole({
includes: ['log', 'debug', 'info', 'warn', 'error'],
}),
htmlPlugin({
headScripts: ERROR_LOGGING ? [rollbarCode] : [],
}),