Comments (1)
It would be awesome to have a version of Serwist that works with turbopack.
I agree! However, it seems to be not really feasible at the moment.
Since Turbopack isn't configurable through plugins yet, our only options to provide rudimentary support for Turbopack would be to either introduce a post-build script that the user runs manually, which would only work for next build --turbo
(which doesn't seem to be a thing yet?) and would be really limited, for we are not able to access things the likes of webpack config, fully resolved Next.js config, etc., or write a Turbopack loader as suggested, but I'm not really sure as to when this loader is run.
If it is run after the build script is done with static files such as ".next/static/chunks/**/*.js", which seems to be unlikely, then we can make it work. Otherwise, we may as well just wait for Turbopack's plugin support.
At the moment though, since next build --turbo
seemingly isn't supported yet, I believe using the normal @serwist/next
should just work and Turbopack support needn't already be a priority yet. This is because most simple use cases don't really need having a service worker in development mode. However, if one's use case is more complex, perhaps their only choice is to temporarily make do with webpack or not use Serwist.
I hope you understand the situation...
from serwist.
Related Issues (20)
- [Docs]: Next.js, where are the cache expiration settings and similar configuration HOT 8
- [Bug]: Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 2
- [Bug]: serwist tries to install service worker with different name than specified in next config HOT 2
- [Bug]: Problem with old safari version HOT 7
- [Docs]: Can I precache routes? (Next) HOT 13
- [Docs]: Nextjs webmanifest
- [Bug]: serwist/next using `basePath` results in wrong sw.js URL in manifest HOT 3
- [Bug]: PPR Forces Load Wait HOT 4
- [Feature request]: Offline page fallback HOT 4
- [Bug]: getServerSideProps not triggered HOT 7
- [Docs][Bug]: using offline pages HOT 2
- [Bug]: Snyk vulnerability SNYK-JS-INFLIGHT-6095116 HOT 6
- Cannot find package 'webpack' HOT 2
- [Docs]: Can you update with an example for sub domain like app.acme.com HOT 1
- [Bug]: require() of ES Module not supported when running tests HOT 3
- [Bug]: Googletagmanager fails to load on safari with the default @serwist/next package HOT 4
- [Bug]: Next pages navigation causes stale data HOT 1
- [Bug]: Fetch requests do not go through service worker HOT 4
- [Bug]: Service Worker is installed on a page out of scope. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serwist.