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

use chunks for service-worker target #89

Closed
pi0 opened this issue Apr 12, 2022 · 0 comments
Closed

use chunks for service-worker target #89

pi0 opened this issue Apr 12, 2022 · 0 comments
Assignees
Labels

Comments

@pi0
Copy link
Member

pi0 commented Apr 12, 2022

nuxt/nuxt#11779

We can use renderDynamicImport (todo) to load async chunks for server-worker target instead of using one chunk with either fetch+eval or importScripts. This will allow us deploying a real world app (like docus transformers) to static hosting without huge startup time.

Alternative: We can also use experimental ES worker modules (blog) but I think last time there was a chrome only support for this and firefox was unable

@pi0 pi0 added enhancement New feature or request preset:service-worker labels Apr 12, 2022
@pi0 pi0 self-assigned this Apr 12, 2022
@pi0 pi0 closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant