Skip to content

[audit] dead-code: unused npm package @tauri-apps/plugin-window-state #514

@claude

Description

@claude

Problem

@tauri-apps/plugin-window-state (package.json:49) is listed as a production dependency but is never imported in any frontend source file under src/.

The window-state plugin is used purely on the Rust side (tauri_plugin_window_state registered in src-tauri/src/lib.rs). For Tauri v2, the npm package is only needed if frontend JavaScript calls the plugin's JS API — which this project does not.

Impact

Unused dependency adds to node_modules size and install time. No runtime impact since it's never imported or bundled.

Suggested Fix

-"@tauri-apps/plugin-window-state": "^2.4.1",

Caveat: Some Tauri plugins register JS-side initialization. Verify window state persistence still works after removal.

Files

  • package.json:49

Metadata

Metadata

Assignees

No one assigned

    Labels

    auditCodebase audit findingdead-codeDead or unreachable code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions