Skip to content

refactor: Modify playground to use vanilla JavaScript#2

Open
natanelia wants to merge 1 commit intofeat/add-react-playgroundfrom
refactor/playground-to-vanilla-js
Open

refactor: Modify playground to use vanilla JavaScript#2
natanelia wants to merge 1 commit intofeat/add-react-playgroundfrom
refactor/playground-to-vanilla-js

Conversation

@natanelia
Copy link
Owner

This commit refactors the existing playground in packages/playground to use pure vanilla JavaScript, removing React and its associated dependencies.

Changes include:

  • Removal of React, ReactDOM, and related type/plugin dependencies from packages/playground/package.json.
  • Deletion of React-specific files (App.tsx, main.tsx, index.css, postcss.config.mjs).
  • Recreation of index.html with a new structure suitable for a vanilla JS application.
  • Creation of src/main.js containing the client-side logic for interacting with comlink-worker-pool, managing UI elements, and displaying logs and stats without React.
  • Update of vite.config.ts to remove React plugin and ensure compatibility with a vanilla JS/TS Vite setup.
  • Confirmation that the existing GitHub deployment workflow (deploy-playground.yml) is still compatible with the vanilla JS Vite project.

The playground now operates without React, directly using DOM manipulation for UI updates and comlink-worker-pool for managing worker threads.

This commit refactors the existing playground in `packages/playground` to use pure vanilla JavaScript, removing React and its associated dependencies.

Changes include:
- Removal of React, ReactDOM, and related type/plugin dependencies from `packages/playground/package.json`.
- Deletion of React-specific files (`App.tsx`, `main.tsx`, `index.css`, `postcss.config.mjs`).
- Recreation of `index.html` with a new structure suitable for a vanilla JS application.
- Creation of `src/main.js` containing the client-side logic for interacting with `comlink-worker-pool`, managing UI elements, and displaying logs and stats without React.
- Update of `vite.config.ts` to remove React plugin and ensure compatibility with a vanilla JS/TS Vite setup.
- Confirmation that the existing GitHub deployment workflow (`deploy-playground.yml`) is still compatible with the vanilla JS Vite project.

The playground now operates without React, directly using DOM manipulation for UI updates and `comlink-worker-pool` for managing worker threads.
@natanelia natanelia changed the base branch from main to feat/add-react-playground May 20, 2025 01:11
@natanelia
Copy link
Owner Author

asdf

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.

1 participant

Comments