improve treeshaking

This commit is contained in:
AAGaming
2024-07-17 19:38:16 -04:00
parent 24c3d3c8f1
commit a5ccc87a46

View File

@@ -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',