Skip to content

Conversation

@Bayheck
Copy link
Contributor

@Bayheck Bayheck commented Jun 20, 2025

Purpose

Describe the problem you want to address or the feature you want to implement.

Approach

Describe how your changes address the issue or implement the desired functionality in as much detail as possible.

References

Provide a link to the existing issue(s), if any.

Pre-Merge TODO

  • Write tests for your proposed changes
  • Make sure that existing tests do not fail

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this pull request in the future. If it is still relevant or you have any additional information regarding it, please leave a comment and we will keep it open.

@github-actions github-actions bot added the STATE: Stale Outdated issues automatically closed by the Stale bot label Dec 20, 2025
Copilot AI review requested due to automatic review settings December 21, 2025 16:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR attempts to fix an issue with module workers by detecting whether a worker is a module worker and using import() instead of importScripts() to load the hammerhead library.

  • Adds an isModule() detection function that attempts to call importScripts() to determine if the worker context is a module worker
  • Conditionally uses import() for module workers and importScripts() for classic workers
  • Updates the worker initialization code in the script header template

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Bayheck Bayheck removed the STATE: Stale Outdated issues automatically closed by the Stale bot label Dec 23, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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