Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call syntax for worker #3686

Closed
Tracked by #1320
ahabhgk opened this issue Jul 3, 2023 · 8 comments · Fixed by #6916
Closed
Tracked by #1320

call syntax for worker #3686

ahabhgk opened this issue Jul 3, 2023 · 8 comments · Fixed by #6916
Assignees
Labels
team The issue/pr is created by the member of Rspack.

Comments

@ahabhgk
Copy link
Collaborator

ahabhgk commented Jul 3, 2023

create worker from function call syntax like navigator.serviceWorker.register()

@ahabhgk ahabhgk mentioned this issue Jul 3, 2023
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jul 3, 2023
@stale
Copy link

stale bot commented Sep 1, 2023

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@stale stale bot added the stale label Sep 1, 2023
@mszkwsk
Copy link

mszkwsk commented Jun 10, 2024

Hey!

We are currently evaluating rspack as a replacement for Webpack. We were able to reduce build time from 20 to 1 second, thanks to this replacement.

However, the output is not a functional application yet. We are using Service Worker in the application and currently there is no option for rspack to figure it out and load it like Webpack did. We would love to see that feature implemented, because it will ease the potential migration process on our end.

tl;dr bump, we are interested in this option:)

@stale stale bot removed the stale label Jun 10, 2024
@karpiuMG
Copy link

@ahabhgk any plans to support it? what's the biggest issue there to have it? is there any other way to register a service worker?

@ahabhgk
Copy link
Collaborator Author

ahabhgk commented Jun 13, 2024

The main blocker (parser refactoring) is no longer an issue now, so I will try to implement it soon.

@ahabhgk ahabhgk self-assigned this Jun 13, 2024
@karpiuMG
Copy link

@ahabhgk are you able to provide any rough timeline? I'm sure you have a lot on yours plate right now, but any date would be appreciated to plan our work as well.

@ahabhgk
Copy link
Collaborator Author

ahabhgk commented Jun 20, 2024

Maybe next week, I'm working on it

@karpiuMG
Copy link

hooray! I am glad you've managed to implement that. When do you plan to release it? @ahabhgk

@ahabhgk
Copy link
Collaborator Author

ahabhgk commented Jun 27, 2024

If everything goes well, we will release this in v1.0.0-alpha.0 in tomorrow, it contains some break changes, but I think it should be easy to upgrade :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants