mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 20:41:55 +00:00
improve treeshaking
This commit is contained in:
@@ -37,6 +37,11 @@ export default defineConfig({
|
|||||||
visualizer(),
|
visualizer(),
|
||||||
],
|
],
|
||||||
preserveEntrySignatures: false,
|
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: {
|
output: {
|
||||||
dir: '../backend/decky_loader/static',
|
dir: '../backend/decky_loader/static',
|
||||||
format: 'esm',
|
format: 'esm',
|
||||||
|
|||||||
Reference in New Issue
Block a user