Skip to content

Conversation

@bcotrim
Copy link
Contributor

@bcotrim bcotrim commented Dec 17, 2025

Related issues

Proposed Changes

Remove PHP-WASM packages (~1.1 GB) from the desktop app's ASAR bundle. The desktop app now uses CLI for all WordPress operations, making these dependencies redundant.

  • Create local type definitions (common/types/php-versions.ts) to replace @php-wasm/universal imports
  • Remove WordPress provider abstraction layer (src/lib/wordpress-provider/)
  • Remove child process entry points from desktop build
  • Remove getProviderConstants IPC/Redux layer - components import directly from common/constants
  • Move download utilities from wp-now to src/lib/download-utils.ts
  • Remove vendor/wp-now/ directory
  • Move PHP-WASM packages from dependencies to devDependencies (for type checking only)
  • Keep forge.config.ts ignore patterns to exclude PHP-WASM from bundle

Size reduction:

Component Before After Reduction
app.asar 1.4 GB 295 MB ~1.1 GB
Total App ~3 GB 1.8 GB ~1.2 GB

Testing Instructions

  1. npm install
  2. npm start
  3. Create a new site - verify it works
  4. Start/stop sites - verify server operations work
  5. Import/export a site - verify backup/restore works
  6. Run tests: npm test
  7. Build installer: npm run package - verify app.asar is ~295 MB

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@bcotrim bcotrim self-assigned this Dec 17, 2025
@bcotrim bcotrim changed the title remove php-wasm from Studio Remove PHP-WASM dependencies from Studio Dec 18, 2025
@bcotrim bcotrim requested review from a team and fredrikekelund December 18, 2025 09:32
@bcotrim bcotrim marked this pull request as ready for review December 18, 2025 10:33
@bcotrim bcotrim changed the base branch from trunk to dev/studio-cli-i2 December 18, 2025 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants