diff options
| author | AAGaming <aagaming@riseup.net> | 2024-07-17 19:38:16 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2024-07-17 19:38:16 -0400 |
| commit | a5ccc87a46de1e670c7572862e124634fe05256c (patch) | |
| tree | 481e4a5cfd8a6e8c951f972a0529967811409988 /frontend | |
| parent | 24c3d3c8f1a51ee88d2c169ba3de619df453e171 (diff) | |
| download | decky-loader-a5ccc87a46de1e670c7572862e124634fe05256c.tar.gz decky-loader-a5ccc87a46de1e670c7572862e124634fe05256c.zip | |
improve treeshakingv3.0.0-pre5
Diffstat (limited to 'frontend')
| -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', |
