Skip to content

feat: add inline web worker support#115

Open
luris123 wants to merge 1 commit intorichardtallent:mainfrom
luris123:feature/inline-workers
Open

feat: add inline web worker support#115
luris123 wants to merge 1 commit intorichardtallent:mainfrom
luris123:feature/inline-workers

Conversation

@luris123
Copy link

@luris123 luris123 commented Feb 4, 2026

  • Add inlineWorkers option (enabled by default) to embed worker scripts as Blob URLs
  • Add replaceWorker function to handle Vite's worker URL patterns
  • Detect worker files matching worker.js pattern
  • Remove {type: "module"} from Worker constructors since Blob URLs use IIFE format
  • Add unit tests for replaceWorker function

- Add inlineWorkers option (enabled by default) to embed worker scripts as Blob URLs
- Add replaceWorker function to handle Vite's worker URL patterns
- Detect worker files matching *worker*.js pattern
- Remove {type: \"module\"} from Worker constructors since Blob URLs use IIFE format
- Add unit tests for replaceWorker function
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