diff options
| -rw-r--r-- | frontend/rollup.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/rollup.config.js b/frontend/rollup.config.js index 911cf06d..2c731e54 100644 --- a/frontend/rollup.config.js +++ b/frontend/rollup.config.js @@ -37,6 +37,11 @@ export default defineConfig({ visualizer(), ], preserveEntrySignatures: false, + treeshake: { + // Assume all external modules have imports with side effects (the default) while allowing decky libraries to treeshake + pureExternalImports: true, + preset: 'smallest' + }, output: { dir: '../backend/decky_loader/static', format: 'esm', |
