diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-11-15 16:44:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-15 13:44:24 -0800 |
| commit | 50764600c83b2bdec599a9fd8e27b3c10a2afd96 (patch) | |
| tree | f802b7c438723846971162d0c845caa237e0cb7d /frontend/rollup.config.js | |
| parent | aec70631393ba307f1ca493a4d96f244e1439555 (diff) | |
| download | decky-loader-50764600c83b2bdec599a9fd8e27b3c10a2afd96.tar.gz decky-loader-50764600c83b2bdec599a9fd8e27b3c10a2afd96.zip | |
Refactoring in preparation for WebSockets (#254)v2.4.1-pre2
* Fix injector race conditions
* add some more tasks
* hide useless rollup warnings
* goodbye to clientsession errors
* completely fix desktop mode switch race condition
* fix typos and TS warning in plugin error handler
* fix chown error
* start debugger if needed and not already started
* fix get_steam_resource for the like 2 legacy plugins still using it lol
* add ClientOSError to get_tabs error handling
Diffstat (limited to 'frontend/rollup.config.js')
| -rw-r--r-- | frontend/rollup.config.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index c4bcd0a2..eef52c22 100644 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -5,7 +5,12 @@ import externalGlobals from "rollup-plugin-external-globals"; import del from 'rollup-plugin-delete' import replace from '@rollup/plugin-replace'; import typescript from '@rollup/plugin-typescript'; -import { defineConfig } from 'rollup'; +import { defineConfig, handleWarning } from 'rollup'; + +const hiddenWarnings = [ + "THIS_IS_UNDEFINED", + "EVAL" +]; export default defineConfig({ input: 'src/index.tsx', @@ -35,5 +40,9 @@ export default defineConfig({ chunkFileNames: (chunkInfo) => { return 'chunk-[hash].js' } + }, + onwarn: function ( message ) { + if (hiddenWarnings.some(warning => message.code === warning)) return; + handleWarning(message); } }); |
